A staircase of primes, built from the zeros of ζ
This needs a browser with WebGL 2.
Each step is a prime. Riemann counted them exactly with waves, one for each zero of the zeta function. The hypothesis says every zero lies on the glowing line, so no wave outgrows √x.
π(x) counts the primes up to x. Riemann's explicit formula writes it exactly: a smooth curve plus one wave for each nontrivial zero ρ of the zeta function. The page uses the first 1000, all of which lie on the critical line.
With no zeros the staircase is a smooth ramp. Each zero adds a ripple, and with enough of them the ripples settle into one step per prime. A step glows gold once the zeros in use tell it apart from its neighbors; until then it stays silver. The label in front of the stairs says how far up that holds.
The column is the critical line, where a zero's real part is ½. Every zero checked so far lies on it, and the Riemann Hypothesis says they all do. A zero at real part β makes a wave about 2xβ/(|ρ| ln x) tall. On the line that is a multiple of √x / ln x, and the hypothesis is equivalent to π(x) staying within about √x ln x of the smooth curve li(x). The Waves panel divides the newest zero's main wave by √x / ln x. On the line its width settles near 2/|ρ|.
Zero off the line is a what-if. It moves the first zero to real part β. The zeros of ζ are mirrored across the line, so a partner appears at 1 − β. This mix is not the zero set of ζ, so the stairs drift from the true count. The panel shows what the hypothesis rules out: the pair's wave outgrows √x by a factor near xβ − ½. If ζ really had such a zero, the formula would still count the primes exactly, but π(x) − li(x) would swing by about xβ/(|ρ| ln x), which outgrows √x ln x as x grows.
True count draws the exact π(x) as a faint band beside the stairs.
Drag to orbit, pinch to zoom.