Little is known of the earliest mathematics, but the famous Ishango Bone from Early Stone-Age Africa has tally marks suggesting arithmetic. The markings include six prime numbers (5, 7, 11, 13, 17, 19) in order, though this is probably coincidence.
The advanced artifacts of Egypt's Old Kingdom and the Indus-Harrapa civilization imply strong mathematical skill, but the first written evidence of advanced arithmetic dates from Sumeria, where 4500-year old clay tablets show multiplication and division problems; the first abacus may be about this old. By 3600 years ago, Mesopotamian tablets show tables of squares, cubes, reciprocals, and even logarithms, using a primitive place-value system (in base 60, not 10). Babylonians were familiar with the Pythagorean theorem, quadratic equations, even cubic equations (though they didn't have a general solution for these), and eventually even developed methods to estimate terms for compound interest.
Also at least 3600 years ago, the Egyptian scribe Ahmes produced a famous manuscript (now called the Rhind Papyrus), itself a copy of a late Middle Kingdom text. It showed simple algebra methods and included a table giving optimal expressions using Egyptian fractions. (Today, Egyptian fractions lead to challenging number theory problems with no practical applications, but they may have had practical value for the Egyptians. To divide 17 grain bushels among 21 workers, the equation 17/21 = 1/2 + 1/6 + 1/7 has practical value, especially when compared with the "greedy" decomposition 17/21 = 1/2 + 1/4 + 1/17 + 1/1428.)
While Egyptians may have had more advanced geometry, Babylon was much more advanced at arithmetic and algebra. This was probably due, at least in part, to their place-value system. But although their base-60 system survives (e.g. in the division of hours and degrees into minutes and seconds) the Babylonian notation, which used the equivalent of IIIIII XXXXXIIIIIII XXXXIII to denote 417+43/60, was unwieldy compared to the "ten digits of the Hindus."
The Egyptians used the approximation π ≈ (4/3)4 (derived from the idea that a circle of diameter 9 has about the same area as a square of side
. Although the ancient Hindu mathematician Apastambha had achieved a good approximation for √2, and the ancient Babylonians an ever better √2, neither of these ancient cultures achieved a π approximation as good as Egypt's, or better than π ≈ 25/8, until the Alexandrian era.
reference:
http://fabpedigree.com/james/mathmen.htm