Published on

The Riemann Hypothesis

View .md
The 30-second version. The primes look random, yet a single function \(\zeta(s)\) encodes their exact distribution. Extend \(\zeta\) to the complex plane and it sprouts special inputs, its zeros, that behave like tuning frequencies for the primes. The Riemann Hypothesis says every one of those zeros lands on a single vertical line, \(\operatorname{Re}(s) = \tfrac12\). If true, the primes are spread as evenly as mathematics allows. It has stood open for 167 years and carries a $1,000,000 prize.

A City Made of Numbers

Let's say we live in a numbered city. The buildings are lined up in order, building 1, building 2, building 3, and on forever. Every building is put up the same way: by stacking identical unit blocks into storeys.

Some buildings only ever get one storey. No smaller building's floor plan divides evenly into them (other than a single unit block). Call these buildings prime.

Every other building past the first is multi-storeyed, it can be built by repeating some smaller floor plan several times. Building 6 is two copies of building 3's plan stacked up, or three copies of building 2's. These are the composite buildings.

2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
prime, exactly one storey composite, smaller floor plans stacked

Every building from 2 onward is either prime, or a stack of primes multiplied together, and that stack is unique. Building 12 is always two of building 2's plan and one of building 3's (\(12 = 2\times2\times3\)), and nothing else. This is the Fundamental Theorem of Arithmetic: the primes are the atoms, and every number has exactly one atomic recipe. It is the single fact this whole page rests on.

The question that runs through everything below: as the city stretches to infinity, where are the one-storey buildings? They thin out, but never on a schedule. 2, 3, 5, 7, 11, 13, 17, 19… sometimes neighbours, sometimes far apart, never repeating. The tool that turns that chaos into a precise, testable law is a strange function called \(\zeta(s)\), and the deepest unsolved question about it is the Riemann Hypothesis, the destination of this page.

How to read the graphs. Every plot below is live. Scroll to zoom, drag to pan, double‑click to reset. Some have sliders or a Play button, move them and watch the mathematics respond.

1. What the Zeta Function Is

Take a number \(s\), and add up the reciprocals of every whole number raised to the power \(s\). That infinite sum is the zeta function:

\[ \zeta(s) = \sum_{n=1}^{\infty}\frac{1}{n^s} = 1+\frac{1}{2^s}+\frac{1}{3^s}+\frac{1}{4^s}+\cdots \]

Think of it as a machine: feed in \(s\), and it returns the total of that sum. Whether the machine gives a sensible answer depends entirely on \(s\):

  • If \(s > 1\), the terms shrink fast enough that the sum converges to a finite number. \(\zeta(2) = 1+\tfrac14+\tfrac19+\cdots = \tfrac{\pi^2}{6} \approx 1.645\) (Euler's Basel Problem, 1734).
  • At \(s = 1\) we get the harmonic series \(1 + \tfrac12 + \tfrac13 + \cdots\), which diverges to infinity. This point is a pole, the function blows up there.
  • If \(s < 1\), the raw sum diverges too. So how can \(\zeta(-1)\) possibly equal a number? That's the story of Section 5.
\(s\)\(\zeta(s)\)what it is
\(2\)\(\pi^2/6 \approx 1.6449\)the Basel Problem
\(4\)\(\pi^4/90 \approx 1.0823\)converges quickly
\(1\)\(\infty\) (pole)harmonic series diverges
\(0\)\(-1/2\)only via continuation
\(-1\)\(-1/12\)the famous “1+2+3+…” value
\(-2,-4,-6,\dots\)\(0\)the trivial zeros
About that dashed purple half. The defining sum only converges for \(s>1\). To the left of the pole, plugging numbers into \(\sum 1/n^s\) just gives you a divergent mess. And yet the dashed purple curve is there, smooth and perfectly finite, giving values like \(\zeta(-1)=-\tfrac1{12}\). It isn't computed from the sum at all; it's the unique smooth continuation of the teal curve, the one function that agrees with \(\zeta\) wherever the sum does converge and stays analytic everywhere else. That's analytic continuation, and it's how the entire left half of this picture, including every trivial zero, comes to exist. Section 5 shows exactly how it's built and why it's the only possible extension.
The one big idea. The zeta function packs the entire multiplicative structure of the integers into a single object. Because of a formula we'll meet next, everything about how the primes are distributed is hidden inside \(\zeta(s)\), and the zeros of \(\zeta\) are the key that unlocks it.

2. Watching a Sum Spiral

To go further we have to let \(s\) be a complex number, \(s = \sigma + it\), a point on a 2D plane with a real part \(\sigma\) and an imaginary part \(t\). Why? Because a complex power \(n^{-s}\) is not just a shrinking length; it also carries a direction. Writing \(n^{-s} = n^{-\sigma}\cdot e^{-it\ln n}\), the factor \(n^{-\sigma}\) sets the length and \(e^{-it\ln n}\) sets the angle.

Add the terms nose-to-tail and, instead of creeping along a line, the running total spirals inward to its final value. That final point is \(\zeta(s)\).

Try it. Drag the sliders or press Play. \(\sigma\) controls how fast the terms shrink (bigger \(\sigma\) = tighter, faster convergence); \(t\) controls how fast each term rotates relative to the last. Whatever you pick, the spiral always winds down onto one point, the value of \(\zeta(\sigma+it)\).

3. The Zeta Transformation

A single spiral shows \(\zeta\) at one input. To see the whole function at once, watch what it does to an entire grid of inputs. Below, each faint straight line is a row or column of the input plane. Press Play and every point \(s\) slides to its output \(\zeta(s)\), the rigid grid bends into a field of interlocking spirals.

What you're seeing. This is the geometric personality of \(\zeta\). Notice how the transformation is smooth and angle-preserving everywhere it's defined, a hallmark of a well-behaved ("analytic") complex function. That smoothness is exactly what lets Riemann extend \(\zeta\) to places the original sum can't reach, in Section 5. The point everything swirls around is the pole at \(s = 1\).

4. Euler's Product, the Bridge to the Primes

Here is why any of this touches the primes. In 1737 Euler proved that the same sum can be rewritten as a product over the prime buildings alone:

\[ \zeta(s) = \sum_{n} \frac{1}{n^s} = \prod_{p\ \text{prime}} \frac{1}{1-p^{-s}} \]

The proof is our city in disguise. Expand each factor as a geometric series, \(\dfrac{1}{1-p^{-s}} = 1+p^{-s}+p^{-2s}+\cdots\), and multiply all the factors together. When you pick one term from each bracket and multiply, you get \(1/n^s\) for a number \(n\) built from those exact prime powers. Because every \(n\) has one unique prime recipe, every \(1/n^s\) appears exactly once. The product is unique factorization, written in analysis.

In plain terms. A sum over every building equals a product over just the prime buildings. That equals sign is the bridge, cross it in either direction and facts about primes become facts about a smooth function, and back. Below, switch on more primes and watch the product close in on the true curve.
First payoff: infinitely many primes. As \(s \to 1\), the left side \(\zeta(s) \to \infty\). If there were only finitely many primes, the right side would be a finite product of finite numbers, which is finite. Contradiction: there are infinitely many primes. Euler even showed \(\sum_p \tfrac1p = \infty\): the primes are dense enough that their reciprocals still diverge.

5. Analytic Continuation & the Zeros

The sum and the product both only make sense for \(\operatorname{Re}(s) > 1\), that's the "wall." Riemann's decisive step (1859) was to show that \(\zeta\) can be extended, uniquely and smoothly, to the entire complex plane, with the single exception of the pole at \(s = 1\). This is analytic continuation, the dashed purple half of Figure 1, made rigorous.

Why "unique." A key theorem of complex analysis says a smooth (analytic) function is astonishingly rigid: if two such functions agree on any small patch, they agree everywhere they're both defined. So there is only one possible smooth extension of \(\zeta\) past the wall. Riemann found it, and a whole landscape, full of zeros, appeared on the far side.

The extension obeys a beautiful mirror symmetry. Define the completed zeta function by attaching a couple of standard factors:

\[ \xi(s) = \pi^{-s/2}\,\Gamma\!\left(\tfrac{s}{2}\right)\zeta(s), \qquad \xi(s) = \xi(1-s) \]

Here \(\Gamma\) is the gamma function, the smooth version of the factorial. The identity \(\xi(s) = \xi(1-s)\) says the function is perfectly symmetric under reflection through the vertical line \(\operatorname{Re}(s) = \tfrac12\). That line, the critical line, is forced into the centre of the story by this symmetry alone.

The functional equation also explains the two families of zeros:

  • Trivial zeros at \(s = -2, -4, -6, \dots\). On the negative real axis the \(\Gamma(s/2)\) factor forces \(\zeta\) to vanish at every negative even integer. They're "trivial" because we understand them completely.
  • Nontrivial zeros: every other zero. The symmetry pins them inside the critical strip \(0 \le \operatorname{Re}(s) \le 1\), and in mirror-image families: if \(\rho\) is a zero, so are \(\bar\rho\), \(1-\rho\), and \(1-\bar\rho\).

And a famous byproduct of the continuation, the one that shows up all over the internet:

\(1 + 2 + 3 + 4 + \cdots\)
\(= -\dfrac{1}{12}\) ?!
Not literally. The series obviously diverges to infinity. What's actually true is \(\zeta(-1) = -\tfrac{1}{12}\), the number the analytically continued function assigns to \(s = -1\). The continuation, not the naive sum, produces it (and physics, the Casimir effect, really does use this value).

6. Where Are the Primes? Counting with π(x)

Let \(\pi(x)\) count the primes up to \(x\), the one-storey buildings up to house number \(x\). So \(\pi(10)=4\), \(\pi(100)=25\), \(\pi(10^6)=78{,}498\). Plotted, it's a staircase that jumps by \(+1\) at each prime.

The teenage Gauss (c. 1792) noticed the staircase is closely shadowed by \(x/\ln x\). A sharper companion is the logarithmic integral \(\operatorname{Li}(x) = \int_2^x \frac{dt}{\ln t}\). The Prime Number Theorem (Hadamard and de la Vallée Poussin, 1896) proved these really are the right growth rate: \(\pi(x) \sim x/\ln x\). Their proof worked precisely by using the zeros of \(\zeta\).

The staircase is the exact truth; the smooth curves are the approximations, and \(\operatorname{Li}(x)\) hugs it tightly. The entire Riemann Hypothesis is, at heart, a statement about the size of the gap between the staircase and \(\operatorname{Li}(x)\).

7. Primes as a Chorus of Waves

Riemann's paper made the zeros-control-primes link exact. Using a weighted prime count, the Chebyshev function \(\psi(x) = \sum_{p^k \le x} \ln p\), the explicit formula (von Mangoldt, 1895) reads:

\[ \psi(x) = x - \sum_{\rho} \frac{x^{\rho}}{\rho} - \ln(2\pi) - \tfrac12\ln\!\left(1-x^{-2}\right) \]

Read it as: a smooth trend \(x\), corrected by one term per nontrivial zero \(\rho\). Since \(\rho = \beta + i\gamma\) gives \(x^{\rho} = x^{\beta} e^{i\gamma \ln x}\), each zero contributes an oscillating wave whose amplitude is set by \(x^{\beta}\), the real part of the zero. Stack the waves and you rebuild the prime staircase exactly. This is the literal "music of the primes": the zeros are its frequencies.

Drag the slider. Start with the bare trend line \(y = x\), then add zeros one pair at a time. A few pairs give a loose wobble; add more and the curve snaps onto the true staircase, step by step.

The punchline is in that amplitude \(x^{\beta}\). A zero with \(\beta\) close to 1 would inject a violent, prime-scrambling wave; a zero with \(\beta = \tfrac12\) keeps its wave as quiet as the symmetry allows. So the question "how regular are the primes?" becomes, precisely, "how far right can a zero sit?"

8. The Riemann Hypothesis

Every nontrivial zero of \(\zeta(s)\) has real part exactly \(\tfrac12\).

That's the whole conjecture. Every one of the infinitely many nontrivial zeros, despite only being known to live somewhere in the strip \(0 \le \operatorname{Re}(s) \le 1\), should sit precisely on the critical line \(\operatorname{Re}(s) = \tfrac12\).

The single most important picture on this page

Walk straight up the critical line and trace the value of \(\zeta(\tfrac12+it)\) itself as a curve in the complex plane, its real part on the horizontal axis, its imaginary part on the vertical axis, \(t\) increasing continuously. The result is a looping, spiralling curve, and every single time it passes through the origin, that crossing is a nontrivial zero. This is the classical "polar graph of \(\zeta(\tfrac12+it)\)," and it is arguably the most direct way to see the Riemann Hypothesis: not a list of coordinates, but a real curve, live in the plane, threading the needle at the origin again and again.

Every loop that swings out and curls back through the centre is one nontrivial zero. Drag the \(t\) slider or press Play and watch the curve grow, lobe by lobe, the deeper it winds, the more zeros it has already threaded.

The map below shows the same zeros from a different angle: trivial zeros marching along the negative real axis, and every nontrivial zero (as far as anyone has ever calculated) balanced exactly on the yellow line.

The landscape of \(|\zeta(s)|\)

One more way to see it, in three dimensions this time. Treat \(\sigma=\operatorname{Re}(s)\) and \(t=\operatorname{Im}(s)\) as a flat map, and raise a landscape above it whose height is \(|\zeta(\sigma+it)|\). The pole at \(s=1\) becomes a mountain that shoots off the top of the chart; every nontrivial zero becomes a valley that drops all the way to sea level. Rotate the terrain below and look for the trench of zero-valleys running along \(\sigma=\tfrac12\), the critical line, seen as topography.

Why \(\tfrac12\), and why it matters

The functional equation \(\xi(s)=\xi(1-s)\) already forces the nontrivial zeros to be symmetric about \(\operatorname{Re}(s)=\tfrac12\): they come in pairs \(\rho\) and \(1-\rho\) straddling the line. RH is the claim that every pair has actually collapsed onto the line, that there are no off-line pairs at all. Through the explicit formula of Section 7, this is exactly equivalent to the primes being as evenly spread as mathematically possible. Concretely, von Koch proved in 1901 that RH is the same statement as:

\[ \left|\pi(x) - \operatorname{Li}(x)\right| \le C\sqrt{x}\,\ln x \]

The error between the true prime count and its smooth estimate stays as small as \(\sqrt{x}\), the size of the fluctuation you'd get from flipping a fair coin \(x\) times. RH says the primes, for all their local unpredictability, are globally as pseudorandom and well-behaved as they could ever be. An off-line zero at real part \(\beta > \tfrac12\) would blow this error up to size \(x^{\beta}\), a detectable clumping of the primes.

Why anyone cares. RH is not one isolated puzzle. Hundreds of published theorems begin "assume the Riemann Hypothesis…", results on prime gaps, on fast primality testing, on the growth of arithmetic functions. It sits under so much of number theory that a proof would instantly upgrade an entire library of conditional results to unconditional ones. It is Problem 8 on Hilbert's 1900 list and a Clay Millennium Prize Problem carrying a $1,000,000 reward.

Visual evidence: the gaps between primes

Zoom back into the street and measure the distance between consecutive one-storey buildings, the prime gaps. On average the gap near \(x\) is about \(\ln x\) (primes near a million sit ~14 apart; near a billion, ~21). But the average hides real structure:

  • Gaps are almost always even. Past 2, every prime is odd, so consecutive primes differ by an even number, so odd gaps simply can't occur (bar the lone \(2\to 3\)).
  • Small gaps never run out. Gap 2 (twin primes like 11 & 13) keeps recurring as far as anyone computes; whether it happens infinitely often is the still-open Twin Prime Conjecture.
  • Large gaps stay rare, predictably. Cramér's conjecture guesses the biggest gap near \(x\) is about \((\ln x)^2\), unproven, but matching every gap ever measured.

Individually the gaps look like noise, no formula fits that scatter. But taken as a whole they obey the tight statistical law RH predicts: locally unpredictable, globally lawful. That is the fingerprint of the critical line.

9. Where It Stands (mid‑2026)

The Riemann Hypothesis is still open, no proof, no counterexample. But "open" is a long way from "quiet":

  • Numerical verification. Rigorous computation (Platt & Trudgian, 2020) confirms every zero up to height \(\sim 3\times10^{12}\) lies exactly on the critical line; large runs push verified counts into the tens of trillions. Not one stray zero has ever appeared.
  • Proportion on the line. Hardy (1914) proved infinitely many zeros satisfy \(\operatorname{Re}=\tfrac12\); Selberg (1942) a positive fraction; Conrey (1989) over 40%; recent work nudges it just past 41%.
  • Guth–Maynard (2024). Larry Guth and James Maynard sharpened Ingham's 1940 zero-density estimate from \(3/5\) to \(13/25\), the first real move in over 80 years, with direct consequences for primes in short intervals.
  • De Bruijn–Newman constant. RH is equivalent to \(\Lambda = 0\) for a real constant \(\Lambda\). Rodgers & Tao proved \(\Lambda \ge 0\) (2018); Polymath 15 showed \(\Lambda \le 0.2\). If RH holds, it holds "just barely."
  • Connes' program (2026). A February 2026 survey by Alain Connes outlines a strategy via Weil's quadratic form and trace formulas; using only primes below 13 it reproduces the first 50 zeros, provably on the line.
  • Formalization. The Prime Number Theorem is now machine-verified in Lean 4's Mathlib, and analytic number theory is being formalized in earnest.
The honest summary. After 167 years of overwhelming numerics, 40%+ of zeros provably on the line, the sharpest density bounds in nearly a century, an exact equivalent (\(\Lambda=0\)) balanced on a knife's edge, and a fully proved analogue over finite fields, there is still no proof. Most experts expect the answer will need either a genuinely new idea in analysis, or the successful import of the spectral/geometric machinery that already settled the function-field case.

References

  1. B. Riemann, Über die Anzahl der Primzahlen unter einer gegebenen Grösse, 1859.
  2. H. M. Edwards, Riemann's Zeta Function, Dover, 2001.
  3. E. C. Titchmarsh (rev. D. R. Heath-Brown), The Theory of the Riemann Zeta-Function, 2nd ed., Oxford, 1986.
  4. J. B. Conrey, "The Riemann Hypothesis," Notices of the AMS 50, 341–353, 2003.
  5. L. Guth & J. Maynard, "New large value estimates for Dirichlet polynomials," arXiv:2405.20552, 2024.
  6. B. Rodgers & T. Tao, "The de Bruijn–Newman constant is non-negative," Forum of Math, Pi, 2020.
  7. D. Platt & T. Trudgian, "The Riemann hypothesis is true up to 3·10¹²," Bull. LMS, 2021.
  8. A. Connes, "The Riemann Hypothesis: Past, Present and a Letter Through Time," arXiv:2602.04022, 2026.
  9. P. Borwein, "An Efficient Algorithm for the Riemann Zeta Function," 1995 (used for the live computations here).
  10. Clay Mathematics Institute, Millennium Problem: Riemann Hypothesis.
  11. Wikipedia, Riemann Hypothesis · Riemann Zeta Function.