The Prime Number Theorem: How Primes Are Distributed
We explore the Prime Number Theorem — the asymptotic law governing the distribution of prime numbers — its history from Gauss and Legendre to the landmark proofs by Hadamard and de la Vallée-Poussin, and the deep connection between primes and the Riemann zeta function.
The Theorem
The Prime Number Theorem (Hadamard & de la Vallée-Poussin, 1896)
Let denote the number of primes not exceeding . Then:
Equivalently, .
In words: among the first positive integers, roughly of them are prime, and this approximation becomes increasingly accurate (in relative terms) as grows.
The Prime Counting Function
For any real number , the prime counting function is:
Some values:
| Ratio | |||
|---|---|---|---|
| 168 | 145 | 1.16 | |
| 78498 | 72382 | 1.08 | |
| 50847534 | 48254942 | 1.05 | |
| 37607912018 | 36191206825 | 1.04 |
The ratio slowly approaches , confirming the theorem.
A Better Approximation: The Logarithmic Integral
While captures the leading behavior, a far better approximation is the logarithmic integral:
Refined Prime Number Theorem
Integration by parts gives , so includes lower-order correction terms.
For : while , an error of only .
Historical Background
Early Observations
The ancient Greeks knew there are infinitely many primes (Euclid, c. 300 BC), but the density of primes remained mysterious for millennia.
Around 1792, the 15-year-old Carl Friedrich Gauss examined tables of primes and conjectured that the density of primes near is approximately . He wrote in a letter much later:
"I noticed as early as 1792 or 1793 that the density of primes around is approximately ."
Adrien-Marie Legendre independently conjectured in 1798 that for a constant .
Chebyshev's Bounds
Pafnuty Chebyshev (1850) proved that if the limit exists, it must equal . He also established the bounds:
for sufficiently large , but could not prove the limit exists.
The 1896 Proofs
The theorem was independently proved in 1896 by Jacques Hadamard and Charles Jean de la Vallée-Poussin, both using complex analysis and properties of the Riemann zeta function.
The Riemann Zeta Function
The key to proving PNT is the Riemann zeta function:
Euler's Product Formula
Euler discovered that has a product over primes:
Proof. Each factor . Multiplying over all primes and using the fundamental theorem of arithmetic (unique prime factorization):
This product formula encodes the distribution of primes in the analytic properties of .
The Critical Connection
Taking logarithmic derivatives of the Euler product relates to a sum over prime powers, which connects zeros of to the distribution of primes. Specifically, the explicit formula of Riemann gives:
where is the Chebyshev function and the sum runs over the non-trivial zeros of .
Why PNT Follows from Non-Vanishing on
The proof of PNT reduces to showing:
That is, has no zeros on the line . This is what Hadamard and de la Vallée-Poussin proved.
The standard argument uses the inequality:
which follows from the identity .
If , then the factor would vanish as fast enough to force the product below — a contradiction.
The Equivalent Formulation
The PNT is equivalent to the statement about the Chebyshev function:
where and is the von Mangoldt function:
This formulation is often more natural for analytic proofs.
The Erdős–Selberg Elementary Proof
In 1949, Atle Selberg and Paul Erdős found an "elementary" proof of PNT that avoids complex analysis entirely. The key is Selberg's identity:
From this, PNT follows by careful estimation. The proof was elementary in the technical sense (no complex analysis) but not simple — it was a tour de force of real-variable methods.
Error Terms and the Riemann Hypothesis
The PNT with its best known error term is:
for some constant .
If the Riemann Hypothesis (all non-trivial zeros of have real part ) is true, then the error term improves dramatically:
This is the best possible up to the logarithmic factor — the zeros of on the critical line create oscillations of order in .
Primes in Arithmetic Progressions
Dirichlet (1837) proved that every arithmetic progression with contains infinitely many primes. The PNT generalizes to give the asymptotic count:
where is Euler's totient function. Primes are equidistributed among the residue classes coprime to .
Summary
References
- Hardy, G. H. and Wright, E. M., An Introduction to the Theory of Numbers, 6th edition, Oxford University Press, 2008.
- Davenport, H., Multiplicative Number Theory, 3rd edition, Springer, 2000.
- Iwaniec, H. and Kowalski, E., Analytic Number Theory, AMS, 2004.
- Wikipedia — Prime number theorem
- Wikipedia — Riemann zeta function
- Tao, T., "254A: Analytic Prime Number Theorem"