Number Theory: An Approach through History from Hammurapi to Legendre