Chapter I
Counting Primes with Calculus
Euclid proved the primes never end, but not how common they are. Leonhard Euler found the first link between primes and analysis in 1737. The infinite series equals a product over all the primes,
a consequence of unique factorisation written in the language of calculus. From it he deduced that the reciprocals of the primes, , add up to infinity. The primes are rare, but not too rare.
Half a century later, poring over tables, the teenage Gauss and Legendre each guessed the law: up to , about numbers are prime. In 1837 Dirichlet proved that primes are spread across all compatible arithmetic progressions, using new functions, now called L-functions, and the full machinery of analysis. The methods of elementary number theory had been left behind.
Chapter II
Riemann's Eight Pages
In 1859 Bernhard Riemann, better known for his work in geometry, wrote his only paper on number theory. Using the complex analysis he had developed in his thesis, he extended Euler's function to complex numbers, where it becomes the zeta function , and showed that the exact count of primes is determined by the locations of its zeros. The primes are, in a precise sense, a sum of waves whose frequencies are those zeros.
He also computed a few zeros and found them all on one vertical line. It was "very probable", he wrote, that all of them lie there, but he had put aside the search for a proof "after some fleeting vain attempts". That remark is the Riemann hypothesis.
Chapter III
The Theorem, Twice
Riemann's programme took nearly forty years to carry out. In 1896 Jacques Hadamard and Charles-Jean de la Vallée Poussin, working independently, proved that has no zeros on the line with real part 1, and deduced the prime number theorem. Both lived past ninety, which prompted a joke that proving it grants long life.
Many believed the theorem was inseparable from complex analysis. In 1948–49 Atle Selberg and Paul Erdős found a proof using only elementary estimates, and then fell out bitterly over who deserved the credit.
Chapter IV
A Closer Look: How Good Is the Prediction?
The prime number theorem predicts that there are about primes up to . Gauss's refinement, the logarithmic integral , adds up the "probability" that each number near is prime. Compare both with the true counts:
| primes up to , | |||
|---|---|---|---|
| 78,498 | 72,382 | 78,628 | |
| 50,847,534 | 48,254,942 | 50,849,235 |
Both estimates have the right growth, but is far better. Up to a billion it is off by about 1,700, where is off by more than two and a half million.
How large can the error get? That is exactly what the Riemann hypothesis controls. If it is true, the error never grows much faster than , about the size of the fluctuations in a random walk of steps. At that scale is about 660,000. Lowell Schoenfeld's explicit form of the bound, , is about 26,000. The actual error is 1,701, well inside it. Riemann's explicit formula shows where the error comes from: each zero of the zeta function contributes a wave to the count of primes. Zeros on the critical line produce waves of the smallest possible size. A zero off the line would produce a larger wave, and the primes would be measurably less regular than they appear.
The table also hides a surprise. In every computed case overestimates , and for a century it was assumed to always do so. In 1914 Littlewood proved that the two swap places infinitely often, but the first crossing lies beyond the range of any computer: somewhere below about , by current bounds.
Chapter V
Gaps and the Fog
The biggest questions remain. The Riemann hypothesis has resisted more than 160 years of attempts, even as trillions of zeros have been checked. The twin prime conjecture, that primes 2 apart never run out, looked hopeless until 2013. Then Yitang Zhang, a little-known lecturer who had once worked in a sandwich shop, proved that some fixed gap below 70 million occurs infinitely often. James Maynard and a worldwide online collaboration soon brought the bound down to 246. The last step, from 246 to 2, needs an idea no one yet has.