AtomSpark

Small discoveries. Wider horizons.

Counting primes: the margin of error at the heart of the Riemann hypothesis

Scientific Identity, Portrait of Bernhard Riemann

On 20 November 2026, mathematicians made two competing claims to have solved the Riemann hypothesis, according to Nature. Neither announcement by itself establishes a proof. The question Bernhard Riemann posed in 1859 is about the accuracy of a prediction: if you count all the primes up to a given number, how far can your tally stray from the expected count?

In the late 1700s, a teenage Carl Friedrich Gauss noticed that primes grow sparser as numbers get larger. Their frequency appeared to fall in inverse proportion to the number of digits. That pattern offered a way to estimate how many primes a count would find, even without knowing which numbers were prime. When Riemann wrote his paper about half a century later, Gauss’s prediction still lacked a rigorous proof.

Counting primes: the margin of error at the heart of the Riemann hypothesis

Riemann proposed a limit on the size of the discrepancy. If you count the primes up to a number n, the scale to think about for the error is roughly the square root of n, rather than n itself, explains Andrew Granville, a number theorist at the University of Montreal. A similar scale appears in coin tossing: as the number of tosses grows, the tally of heads can stray farther from the expected count even as the typical discrepancy shrinks as a fraction of the total. The analogy concerns the size of the fluctuations, not whether a number is prime by chance.

Riemann’s paper also established a connection that did not depend on proving his conjecture. He showed that the zeros of the zeta function—the points z where ζ(z) = 0—encode information about the distribution of primes. He made the connection using a form of Fourier analysis, the mathematics that lets a sound recording be broken down into simple waves. That link between the zeros and the prime count was a result of the paper; the proposed limit on how much the count could fluctuate was its hypothesis.