The real part of a zero sets how loud its wave is. Move a zero off the line and watch the primes go wrong, then read the hypothesis as a precise promise about the error in counting primes, a promise that became a theorem in November 2026
Each zero of the zeta function contributes a wave to the count of primes, and the real part of the zero sets how loud that wave is. The Riemann hypothesis says every wave is exactly as quiet as the symmetry of ζ allows. This lesson turns that into a precise promise about primes, and lets you see what breaking it would have meant.
The hypothesis was proved in November 2026, 167 years after Riemann stated it, by a machine-checked proof. So the promise is kept: the bounds in this lesson that used to begin “if the Riemann hypothesis holds” are now theorems. See also: What Is Actually Known.
One zero has been pulled off the critical line. Drag it further, pick a different zero, then press “Put it back on the line” and compare the three charts on the right.
Left: drag any of the first twenty zeros sideways. The functional equation gives a zero at β + iγ a companion at 1 − β + iγ, so the pair ½ ± iγ is replaced by four zeros (the two below the real axis are not drawn). That is two waves where there was one, which is why even a small move changes the counts a little. Top right: the size of the chosen wave, 2xβ/|ρ| at most, on logarithmic axes. Middle: the error ψ(x) − x from von Mangoldt’s formula with the first 500 pairs of zeros, divided by √x and sampled at 900 values of x; it wiggles faster than a screen can show. Bottom: π(x) − li(x) from a sieve, and the same with the change carried through Riemann’s formula for π(x). Everything is double-precision arithmetic in this browser.
In von Mangoldt’s explicit formula a pair of zeros ρ = β ± iγ contributes
−2 xβ cos(γ ln x − arg ρ) / |ρ|
to ψ(x) − x. The exponent of x is the real part of the zero and nothing else. Write Θ for the least upper bound of the real parts of all the zeros. Then ψ(x) − x = O(xΘ ln² x), and the error is not O(xΘ − ε) for any ε > 0: the loudest waves cannot cancel one another for ever. So one zero with β > ½ would make the error in the prime number theorem larger than √x by a power of x, for arbitrarily large x. And the functional equation pairs a zero at β + iγ with one at 1 − β + iγ, so Θ can never be less than ½. The Riemann hypothesis is the statement that Θ = ½, and since November 2026 it is a theorem. See also: The Mirror at One Half for the symmetry, and Primes from Zeros for the formula.
The demo is a what-if: it shows what the theorem rules out. It takes the true zeros, removes one pair, and puts in the four zeros that a zero off the line would bring with it; no function with those zeros is being claimed to exist. The count of primes is carried through Riemann’s formula for π(x), where the term xρ/ρ becomes li(xρ).
Notice the 1/|ρ| in the amplitude. Move the twentieth zero instead of the first and the damage arrives later: a high zero is quiet at small x whatever its real part. This is why counting primes could never have settled the question. Before the proof, every zero up to height 3 × 1012 had been checked to lie on the line (Platt and Trudgian, 2021), so a zero off the line, had there been one, would have had γ larger than that. With real part 0.6, say, and height 1013, its wave would have size 2x0.6/1013, which does not reach the √x of the ordinary error until x is around 10130. No table of primes will ever go that far.
Watch the true error in counting primes stay under the bound the hypothesis guarantees, and switch to ψ. Then slide x up to 101000 in the lower chart and compare the bounds proved before 2026 with the one the hypothesis gives.
| At x = 10100 | Status | Size | Digits of π(x) pinned down |
|---|---|---|---|
| π(x) itself, about x / ln x | the thing being estimated | 1097.6 | it has 98 |
| 9.2211 x √(ln x) exp(−0.8476 √(ln x)) | proved before 2026 (form: de la Vallée Poussin, 1899; these constants: Fiori, Kadiri and Swidinsky, 2023) | 1096.6 | 1.1 |
| 0.028 x (ln x)0.801 exp(−0.1853 (ln x)3/5 (ln ln x)−1/5) | proved before 2026 (form: Vinogradov and Korobov, 1958; these constants: Johnston and Yang, 2023) | 1098.8 | 0.0 |
| √x ln x / 8π | a theorem since November 2026 (derived from the Riemann hypothesis by Schoenfeld, 1976) | 1051.0 | 46.7 |
Upper chart: a segmented sieve run in this browser, with li(x) carried along step by step; each point is the largest error in one of 240 columns of the logarithmic axis. Lower chart: each bound is evaluated through its logarithm, because 101000 does not fit in a double. The vertical axis of the first view is the number of digits in each quantity. With today’s published constants the classical form is the smaller of the two earlier bounds until ln x is about 1.8 × 10⁹, far off the right-hand edge; beyond that the Vinogradov–Korobov form wins, as its shape says it must. The sieve is double-precision arithmetic and a demonstration, not a proof; the bounds in the table are theorems with the constants as published.
These three statements are equivalent, each one true exactly when the others are. Since November 2026 all three are theorems:
every zero in the strip has real part ½ ⟺ ψ(x) = x + O(√x ln² x) ⟺ π(x) = li(x) + O(√x ln x)
The last is Helge von Koch’s theorem of 1901. It turns a statement about a function of a complex variable into one about whole numbers, with no complex numbers in sight. Lowell Schoenfeld made the constants explicit in 1976: he showed that the hypothesis gives |π(x) − li(x)| < √x ln x / 8π for all x ≥ 2657 and |ψ(x) − x| < √x ln² x / 8π for all x ≥ 73.2. For fifty years those were conditional theorems; since November 2026 they are theorems outright. A single x that broke either inequality would have disproved the hypothesis. The scan above finds none, as it must, though a scan was only ever evidence and not proof.
The square root cannot be improved. Littlewood proved in 1914, with no hypothesis, that π(x) − li(x) is infinitely often larger than a constant times √x ln ln ln x / ln x, and infinitely often smaller than minus that. So what the theorem says is that the error is about √x, give or take logarithms: as small as an error built from waves of size √x could possibly be.
What had been proved before 2026 was far weaker. De la Vallée Poussin’s zero-free region (1899) gives an error of the form x exp(−c √ln x), and the wider region of Vinogradov and Korobov (1958) gives x exp(−c (ln x)3/5 (ln ln x)−1/5). The second is smaller for very large x, but with the constants that have been made explicit so far the first is smaller across the whole of the chart. Both are larger than x1 − ε for every ε > 0. The demo uses the explicit versions of Fiori, Kadiri and Swidinsky (2023) and of Johnston and Yang (2023).
The hypothesis also controls the size of ζ itself. It implies the Lindelöf hypothesis, that |ζ(½ + it)| grows more slowly than any power of t, which is a weaker statement, was likewise unproved before 2026 and is now a theorem with it. See also: Prime Distribution in Number Theory.
Let the sieve find the record gaps between primes and compare them with three curves. Then switch to “Testing primality” and see how small a witness each composite number needs.
| record gap | after the prime | ÷ ln² p | ÷ (22/25) √p ln p |
|---|
A record gap is one longer than every gap before it. The teal curve is p0.525 with constant 1: the theorem says only that there is a prime between x and x + x0.525 once x is large enough, with no explicit starting point, so read it as a slope. Only the gaps after 2, 3 and 7 are longer than ln² p.
Hundreds of published theorems were written conditional on the Riemann hypothesis or on its generalisation. Those that need only the hypothesis for ζ, such as Schoenfeld’s bounds and Cramér’s bound on gaps, became theorems in November 2026. Those that need the generalisation did not. The generalised Riemann hypothesis makes the same claim, real part ½ for every zero in the critical strip, about each Dirichlet L-function: the relatives of ζ that sort the primes by their remainders on division by a fixed number. Miller’s and Bach’s results on primality testing need it because the question “does a small witness exist?” is a question about how evenly residues are spread, and that is governed by the zeros of those L-functions. The proof certified in November 2026 is of the hypothesis for ζ. Independent checkers report that the same Lean library also contains the generalised hypothesis for Dirichlet L-functions, but that was not part of the certification, so this page keeps Miller’s and Bach’s results conditional. See also: A Family of Zeta Functions.
A conditional theorem was never a second-class theorem. It shows what a hypothesis is for: which facts about primes are, underneath, facts about zeros. It also marks out a target. The ternary Goldbach problem was first reached conditionally, by Hardy and Littlewood in 1923, for all large odd numbers; Vinogradov removed the hypothesis in 1937, and Harald Helfgott completed the proof for every odd number above 5 in 2013. Primality testing went the same way: Miller’s deterministic test of 1976 depends on the generalised hypothesis, and Agrawal, Kayal and Saxena found an unconditional one in 2002 by a different route.
The gaps tell a more sobering story. The hypothesis gives gaps of size at most about √p ln p, which is now a theorem, and the records in the demo sit near ln² p, as Cramér conjectured in 1936 from a random model of the primes. That conjecture is still open. The Riemann hypothesis says everything there is to say about the real parts of the zeros, and even as a theorem it does not tell us how far apart consecutive primes can be. See also: Does Randomness Help? in P versus NP, for what it means to replace a randomised algorithm by a deterministic one.
Spot a mistake or have an idea?