Want more than that?The whole story
Eight steps, one new idea each. Tap a word with a dotted line and the maths behind it opens right under its sentence. Tap it again to close it.
1 The primes
A prime is a whole number bigger than 1 that nothing divides except 1 and itself: 2, 3, 5, 7, 11, 13. Every other whole number is built from primes by multiplying, and in exactly one way: 60 is 2 × 2 × 3 × 5 and nothing else. The primes are the atoms of the numbers.
Exactly one way: the fundamental theorem of arithmetic
Every whole number above 1 is a product of primes, and the list of primes is the same however you find it. Only the order can change: 60 = 2 · 2 · 3 · 5 = 5 · 3 · 2 · 2.
It sounds obvious and it isn't free. It rests on a fact Euclid proved: a prime that divides a product a × b must divide a or b. Everything on this page hangs on it. Euler's product, in step 4, is this theorem written as a single equation.
They also look random. No simple rule says where the next one falls. They get rarer as the numbers grow, but they never run out.
They never run out: Euclid's proof
About 300 BC. Take any finite list of primes. Multiply them all together and add 1. Divide the result by any prime on the list and the remainder is 1, so none of them divides it. But it has some prime factor, like every number above 1. That prime is not on the list. So no finite list holds them all.
2 Count them
Pick a number x and count the primes up to it. Up to 10 there are four: 2, 3, 5, 7. Up to 100 there are 25. Draw the count against x and you get a staircase: flat, then one step up at each prime. Call it the prime staircase.
The prime staircase: π(x)
Mathematicians write the staircase as π(x), the prime-counting function: the number of primes less than or equal to x. So π(10) = 4 and π(100) = 25.
This π has nothing to do with the 3.14159 of circles. It is just the Greek p, for prime. The circle's π turns up on this page too, first in step 3. Different thing.
Up close the steps are irregular. From far away, by 100,000, you can hardly tell the staircase from a smooth curve.
That curve is known. Around a number x, about one number in every ln x is prime, where ln is the natural logarithm. Near a thousand that is one in 7, near a million one in 14, near a trillion one in 28. Add those chances up from the start and you get the smooth curve in the picture. Gauss guessed it as a teenager, around 1792.
The natural logarithm
ln x answers: to what power must e = 2.718… be raised to give x? To get a feel for it, ln of 10k is 2.3 × k. A million is 106: ln = 13.8. A trillion is 1012: ln = 27.6.
So the primes thin out, but slowly. Every time the numbers get a thousand times bigger, the gap between primes grows by about 7 on average.
Gauss's guess: the prime number theorem
If the chance that a number near t is prime is 1/ln t, then the count up to x should be the sum of those chances, which is an integral:
This is the logarithmic integral, and it is the smooth curve in the picture. The cruder x / ln x says the same to first order and is what most textbooks state. Gauss wrote down his guess in a letter in 1849, saying he had found it in 1792 or 1793, and he never proved it.
Hadamard and de la Vallée Poussin proved it, independently, in 1896. Both used Riemann's ideas: the proof comes down to showing that the zeta function, which you meet in the next step, has no zero with real part exactly 1. The Riemann hypothesis is the much stronger statement about how good the approximation is.
So the staircase is a smooth curve plus a wiggle around it. The curve is understood. The Riemann hypothesis is about the wiggle: what it is made of, and how big it can get.
3 The zeta function
Now for a machine that seems to have nothing to do with primes. It is called ζ, the Greek letter zeta, and it is a function: you put a number in, and a number comes out. Its full name is the Riemann zeta function, though Euler got there first. The number you put in is called s. The recipe:
ζ(s) = 1 + 1/2s + 1/3s + 1/4s + 1/5s + …
Take every whole number, raise it to the power s, turn it upside down, and add them all up. Mathematicians write that with a sum sign.
With a sum sign
The ∑ says add. n is the counter: it runs through 1, 2, 3 and on forever, while s stays fixed. A sum of this shape, with the counter raised to a fixed power underneath, is called a Dirichlet series.
Whether it settles is the integral test: the terms behave like the area under x−s, which is finite exactly when s is above 1. Close to 1 it behaves like 1/(s − 1), plus a little over a half: ζ(1.1) = 10.58 and ζ(1.01) = 100.58.
- s
- What you put in.
- ζ(s)
- What comes out.
- 1, 2, 3, …
- The counter inside the sum. It is used up in the adding and never shows in the answer.
- ζ
- Zeta. Not θ, theta, which looks similar and names other things: Chebyshev's θ is a relative of the prime staircase, Heaviside's θ is a single step.
Try s = 2. The sum is 1 + 1/4 + 1/9 + 1/16 + … The terms shrink fast enough for the total to settle, at 1.6449… Euler found the exact value in 1734: it is π²/6. So ζ(2) = 1.6449…
π²/6: the Basel problem
1 + 1/4 + 1/9 + 1/16 + … = π²/6 = 1.644934… Here π is the circle's.
Euler's argument, roughly: the function sin(x)/x is zero at ±π, ±2π, ±3π and so on. So write it as a product with one factor per zero, (1 − x²/π²)(1 − x²/4π²)(1 − x²/9π²)…, multiply out, and compare the x² term with the known series 1 − x²/6 + … Out falls the sum.
A function written as a product over its zeros. Remember the move. Riemann makes it again in step 7, and that time the zeros are the whole story.
Try s = 1. Now the sum is 1 + 1/2 + 1/3 + 1/4 + … These terms shrink too slowly, and the total grows without limit. ζ blows up at s = 1.
Grows without limit: the harmonic series
Group the terms. 1/3 + 1/4 is more than 1/2. So is 1/5 + 1/6 + 1/7 + 1/8. So are the next eight terms, and the next sixteen. Every block adds more than a half and there is always another block. (Oresme, about 1350.)
It grows very slowly, like ln of the number of terms: a million terms add up to 14.39, a trillion to 28.21.
Musicians know these terms. Strings of length 1, 1/2, 1/3, 1/4 give a note and its overtones, the harmonic series. That is where the name comes from.
For every s above 1 the sum settles. The closer s gets to 1, the bigger ζ(s) becomes. Remember that wall at 1.
4 Why zeta knows the primes
The recipe for ζ uses every whole number. No primes in sight. In 1737 Euler found them inside it, with a sieve.
Start with the sum:
ζ(s) = 1 + 1/2s + 1/3s + 1/4s + 1/5s + 1/6s + …
Multiply all of it by 1/2s. Every number underneath doubles:
ζ(s) × 1/2s = 1/2s + 1/4s + 1/6s + 1/8s + …
Those are exactly the even terms. Subtract the second line from the first and the even terms are gone:
ζ(s) × (1 − 1/2s) = 1 + 1/3s + 1/5s + 1/7s + 1/9s + …
Do the same with 3: multiply by (1 − 1/3s), and every multiple of 3 still standing disappears. Then 5. Then 7. Each prime wipes out its own multiples.
Go through all the primes and every term is wiped out except the very first. Only the 1 is left:
ζ(s) × (1 − 1/2s) × (1 − 1/3s) × (1 − 1/5s) × (1 − 1/7s) × … = 1
Turn that around and ζ is written with primes alone. A sum over all the numbers equals a product over the primes. This is Euler's product. It works because every number splits into primes in exactly one way, so every term is wiped out once and only once.
Euler's product
Read from the right, it is unique factorisation. Each factor is a geometric series, 1/(1 − p−s) = 1 + p−s + p−2s + … Multiply all the brackets out: each product of one term from every bracket is 1/ns for one n = 2a 3b 5c…, and since every n has exactly one such splitting, every 1/ns turns up exactly once.
Read from the left, as in the story, it is the sieve of Eratosthenes run on a sum.
A bonus: at s = 1 the left side is infinite, so the right side can't be a product of finitely many factors. There are infinitely many primes. That is Euler's proof, and the first time analysis said something about primes.
So ζ is the primes in disguise. Whatever ζ does, the primes are doing.
5 A bigger map for s
So far s was an ordinary number bigger than 1. Riemann's idea, in 1859, was to let s be a complex number.
If you have never met one: an ordinary number is a point on a line. A complex number is a point on a map. It has two coordinates. East to west is its real part. North to south is its height, which mathematicians call the imaginary part. The ordinary numbers are still there. They are the east-west road through the middle, at height 0.
Complex numbers
Write s = σ + i t. σ is the real part, t is the height, and i is a number whose square is −1.
Adding two complex numbers adds their coordinates. Multiplying them multiplies their distances from the origin and adds their angles. That is all i² = −1 amounts to: i is a quarter turn, and two quarter turns point backwards.
If you have used phasors for alternating current, or the complex form of a Fourier transform, you have used exactly this.
The imaginary part
"Imaginary" is a name from the 1600s and a bad one. There is nothing less real about it than about a negative number. On this page it is called the height, because that is where it sits on the map, and because of what it turns into in step 7.
ζ still works on the map: put in a point, get a point out. Two things make that possible, and both open if you want them. A whole number raised to a complex power becomes a rotating arrow, which is where the waves on this page come from. And the sum itself only settles east of the wall, where the real part is above 1, but Riemann showed there is exactly one sensible way to continue ζ across the rest of the map. Only the point s = 1 stays out. ζ still blows up there.
A complex power is a rotating arrow
Take one term of the sum, 1/ns, with s = σ + i t:
n−s = n−σ · e−i t ln n
The first factor is a length. The second is a pure rotation, by the angle t ln n. So each term is an arrow: the real part of s sets how long it is, and the height t turns it.
Walk north on the map and every arrow rotates, each at its own speed ln n. A steadily rotating arrow is a wave. Laid tip to tail, the arrows make a chain. Inside the strip ζ's own chain never settles, but its twin η, the alternating sum in the next panel, does, and it has the same zeros there: a zero, in the next step, is a height where η's arrows close up and end where they started.
Continuing ζ across the map
Functions like ζ are rigid. If two of them agree on any small patch of the map, they agree everywhere both make sense. So if ζ can be extended past the wall at all, it can be done in only one way. This is called analytic continuation.
Here is a piece of it you can check by hand. Flip the sign of every second term:
η(s) = 1 − 1/2s + 1/3s − 1/4s + …
This sum settles whenever the real part of s is above 0, because neighbouring terms nearly cancel. And east of the wall a line of algebra gives η(s) = (1 − 21−s) ζ(s). Divide, and ζ is defined on the whole strip between 0 and 1, which is where everything on this page happens.
Deep end: the functional equationThe last layer of this page. There is a way back.6 The zeros
Here is the object the whole hypothesis is about. A zero of ζ is a point s on the map where ζ(s) comes out as exactly 0.
Some zeros are easy to find: −2, −4, −6 and so on, along the road to the west. They are called the trivial zeros and they play no part in the story.
The trivial zeros
ζ(−2) = ζ(−4) = ζ(−6) = … = 0. They fall straight out of the formula that continues ζ to the western half of the map, and everything about them is known. "Trivial" is mathematician for "fully understood".
They do show up in the prime count, as one tiny correction: all of them together change Riemann's formula by less than 0.15, at every x from 2 upward.
All the other zeros lie in a narrow strip of the map, where the real part is between 0 and 1. It is called the critical strip, and there are infinitely many zeros in it. Here are the first ten, going north.
The critical strip
East of 1 there can be no zero. Euler's product holds there, and a product of factors that are not zero, and that settles, is not zero.
ζ has a mirror symmetry, east to west around the line at ½. It carries the empty region east of 1 onto the region west of 0, where the only zeros are the trivial ones. That leaves the strip.
In 1896 the edges were cleared as well: no zero has real part exactly 1 or exactly 0. That statement is equivalent to the prime number theorem from step 2.
How many are there? Up to height T, about
It comes close to the true counts: 29 zeros up to height 100, 649 up to 1,000 and 10,142 up to 10,000. They get denser as you go north, slowly.
Look at the real parts. The first zero has real part ½ and height 14.13. The second has real part ½ and height 21.02. The third: ½ again, at 25.01.
These are the dots in the picture at the top of the page. Its stripes show which way ζ(s) points at each spot on the map. At a zero ζ has no size and so no direction, and every stripe runs into it.
The Riemann hypothesis says: every zero in the strip has real part exactly ½.
All of them sit on one straight line, running north to south through ½. It is called the critical line. That is the whole statement. Riemann wrote in 1859 that it was "very probable", and that he had put the search for a proof aside after "a few fleeting vain attempts".
The critical line
The zeros in the strip come in mirror pairs. Each has a partner at the same real part and the opposite height, below the road. And each has a partner reflected east to west in the line at ½. So a zero off the line would not be alone: there would be one at real part ½ + a and one at ½ − a, at the same height. The hypothesis says a is always 0.
On the line itself, ζ can be turned into an ordinary real function of the height, and its zeros become sign changes. That is how computers count them, and why "all on the line, up to here" can be checked rigorously.
Deep end: the exact sentence the computer checkedThe last layer of this page. There is a way back.Why would anyone care where a function is zero? Because each zero is a wave in the primes.
7 Each zero is a wave
Back to the staircase from step 2: a smooth curve plus a wiggle. In the same 1859 paper, Riemann found what the wiggle is made of. His explicit formula says:
the prime staircase = the smooth curve + one wave for each zero of ζ
Exactly, not roughly. Here it is, one wave at a time.
The explicit formula
It is cleanest for a weighted count. Instead of counting 1 for each prime, let every prime power pk count ln p. That is Chebyshev's function ψ(x). Its smooth curve is simply the straight line x, and the formula reads (von Mangoldt, 1895):
The sum runs over the zeros ρ in the strip. Take one zero ρ = β + iγ together with its mirror image below the road:
Both jobs of a zero are in that one line. β, the real part, is the power of x: how fast the wave grows. γ, the height, multiplies ln x inside the cosine: how fast it wiggles. And the wave is regular in ln x, not in x. It is a pure tone if you listen on a logarithmic clock.
For the staircase itself the formula has the same shape with li(xρ) in place of xρ/ρ, and li(xρ) is roughly xρ/(ρ ln x).
Deep end: the fine print of the formulaThe last layer of this page. There is a way back.With no waves you have the smooth curve. (Here it is Riemann's own, slightly better version of the curve from step 2.) Add the wave of the first zero and the curve starts to lean toward the steps. Add more and the steps sharpen. With every zero it would be the staircase exactly. The picture stops at 200 of infinitely many.
Riemann's smooth curve
Gauss's curve li(x) runs a little high, because it also counts squares of primes as half a prime, cubes as a third, and so on. Riemann's curve takes those back out:
μ is the Möbius function: +1, −1 or 0 depending on how n splits into primes. The −½ li(√x) term is why li(x) has been above the true count at every x anyone has computed. Littlewood proved in 1914 that the two must cross infinitely often all the same. The first crossing is believed to be near 10316. Nobody has seen it.
The primes, which looked random, turn out to be a chord: a smooth swell plus a set of pure waves.
What each coordinate of a zero does
A zero has two coordinates, and each does one job in its wave.
Its height sets how fast the wave wiggles. A zero further north makes a faster wave. You can see that in the strip under the picture.
Its real part sets how fast the wave grows as x gets bigger. A zero with real part ½ makes a wave that grows like x to the power ½, which is √x. A zero with real part ¾ would make a wave that grows like x to the power ¾, which is much faster. (Don't look for the growth in the picture above. Over a stretch as short as 2 to 100 it barely shows.)
Now put the hypothesis in. Every real part is ½. So every wave grows like √x, and no wave grows faster than any other. They share a growth rate, not a size.
The same growth rate, different sizes
The wave of a zero at height γ has a size of about
The √x / ln x is the same for every zero. (Up to 100 the square root and the logarithm nearly cancel, which is why the waves in the picture hardly grow. Further out the square root wins.) The division by γ is not: zeros further north make smaller waves as well as faster ones. The first zero, at 14.13, makes the biggest wave.
What the hypothesis fixes is the rate. With every real part at ½, no wave gains on another at any size of number. The mix at x = 100 is the mix at 10100. On a mixing desk: every fader stays where it is.
So the wiggle, all the waves together, can never stray far. The count of primes up to x never differs from the smooth curve by much more than √x. The exact bound is about √x times ln x.
The bound: √x times ln x
The waves shrink with the height of their zero, but only like 1/γ, and the zeros get denser going north. So the sizes of the waves do not add up to a finite total. Their sum settles only because the waves are out of step with one another, and that costs a logarithm.
The result (von Koch, 1901): if every zero is on the line, π(x) differs from li(x) by at most a constant times √x ln x. With the constant worked out (Schoenfeld, 1976):
And it runs backwards: a bound like this forces every zero onto the line. The statement about zeros and the statement about primes are one statement.
Here is what that means in digits: the true count of primes, and how far the smooth curve from step 2 is off.
- Up to a thousand168 primes3 digitsoff by 102 digits
- Up to a million78,498 primes5 digitsoff by 1303 digits
- Up to a billion50,847,534 primes8 digitsoff by 1,7014 digits
- Up to a trillion37,607,912,018 primes11 digitsoff by 38,2635 digits
- Up to 101824,739,954,287,740,860 primes17 digitsoff by 21,949,5558 digits
- Up to 102418,435,599,767,349,200,867,866 primes23 digitsoff by 17,146,907,27811 digits
The count of primes up to 1024 has 23 digits. The smooth curve misses it by a number with 11 digits, and √x there has 13. About the first half of the digits are right, at every size. For something this irregular, that is as good as a prediction can be.
As good as it can be
The wiggle cannot be much smaller than √x either. Littlewood proved in 1914, without assuming anything, that π(x) − li(x) swings both above and below zero by at least about √x / ln x, again and again, forever.
So with the hypothesis the size of the wiggle is pinned from both sides. It is √x, give or take logarithms.
Compare a coin. Toss it x times and the number of heads strays from x/2 by something of the order of √x. The primes are not random. But they keep to their average the way a fair coin does, and the Riemann hypothesis is the statement that they do.
In plain words: the primes never start behaving differently. However far out you go, they keep to their average as closely as they did at the start.
What a zero off the line would do
Before the proof, computers had checked more than twelve trillion zeros. Every one was on the line. But there are infinitely many, and nobody could rule out a single zero, far to the north, sitting slightly to one side. This is what that one zero would do.
How much was known before the proof
By computing. Riemann worked out the first few zeros by hand; the calculation was found among his papers decades later. Gram published 15 in 1903. Titchmarsh reached 1,041 in 1936. Turing checked 1,104 on the Manchester computer in 1953. In 2004 Gourdon and Demichel reported ten trillion. The rigorous record is Platt and Trudgian's, published in 2021: all 12,363,153,437,138 zeros up to height 3 × 1012 are on the line.
By proof. Hardy, 1914: infinitely many zeros are on the line. Selberg, 1942: a positive share of all of them. Levinson, 1974: more than a third. Conrey, 1989: more than two fifths. Pratt, Robles, Zaharescu and Zeindler, 2020: more than five twelfths. In August 2026 Levent Alpöge and Ralph Furman at Anthropic published a proof, found by Claude, of more than two thirds: 67.2%.
That August result was something else, not an early version of the proof: Anthropic wrote at the time that it did not expect those techniques to lead to one. "At least two thirds" and "all" are different kinds of statement. No amount of the first adds up to the second.
Its wave outgrows all the others. For a long time you would see nothing. Then, past some size, that one wave would be the biggest thing there, and it would pull the primes further from their average than all the other waves together. Checking zeros one by one could never rule that out. A proof can, and since 2026 one has.
8 It is all waves
Look at what happened. The primes went in as a list of numbers with no visible pattern. They came out as a sound: a smooth swell plus pure tones, one for each zero. The heights of the zeros are the pitches. The real parts say how each tone's loudness changes as the numbers grow, and the hypothesis says they all change alike, so no tone ever takes over.
The zeros are the spectrum of the primes. A musician would call the staircase the waveform and the zeros its frequencies. A physicist would call it a Fourier transform, and would add that the zeros look like energy levels.
The spectrum of the primes
Put the primes on a logarithmic clock, t = ln x. Give every prime power n = pk a click at the time ln n, of strength ln p / √n. Then, with every zero on the line at ½ + iγ:
Clicks on the left, pure tones on the right, and ε a correction that fades fast. It is the explicit formula from step 7, differentiated. Every cosine has the same loudness: that is the hypothesis, in this picture. The √n under the clicks is the same ½.
This is the form you can listen to. The played page renders the right-hand side as audio, from the zeros alone.
The zeros look like energy levels
If every zero is ½ + iγ with γ a real number, the γ look like the eigenvalues of a Hermitian operator: the energy levels of some quantum system. That is the Hilbert-Pólya idea, about a century old. Nobody has found the operator.
In 1972 Hugh Montgomery worked out how pairs of zeros are spaced: they repel each other, with pair correlation 1 − (sin πu / πu)². He mentioned it to Freeman Dyson in Princeton, and Dyson recognised the formula: it is the pair correlation of the eigenvalues of large random Hermitian matrices, the model physicists use for the energy levels of heavy nuclei. Andrew Odlyzko's computations, on millions of zeros around the 1020-th, later matched the prediction closely. Montgomery proved his formula only in part; in full it is still a conjecture.
In Michael Berry's language, the primes behave like the periodic orbits of a chaotic system whose quantum energy levels are the zeros, and the explicit formula is its trace formula. The periods of the orbits are the ln p. In 1999 Berry and Jon Keating proposed the classical Hamiltonian H = xp as a first sketch of such a system.
The 2026 proof does not appear to take this road. Its author's note describes the argument as a descendant of Stepanov's method for the analogous question about curves over finite fields.








