 A lot of his early work on number theory was based on the works of Pierre de Fermat, and developed some of Fermat's ideas.One focus of Euler's work was to link the nature of prime distribution with ideas in analysis.He proved that the sum of the reciprocals of the primes diverges.