History of the theory of numbers