 For example, he proved the infinitude of primes using the divergence of the harmonic series, and used analytic methods to gain some understanding of the way prime numbers are distributed.Euler's work in this area led to the development of the prime number theorem.Euler's great interest in number theory can be traced to the influence of his friend in the St. Peterburg Academy, Christian Goldbach.