Riemann Zeta Visualizer
Follow ζ(½ + it) as t grows. Every time the curve passes through the ring at the origin, it has met a zero of the zeta function.
Sound
Pitch and loudness follow |ζ|, from 110 Hz up to 440 Hz: the farther from the origin, the higher and louder. At a zero it falls silent. The Hz range is our choice to make it audible. Turn sound on before recording to include it.
The line σ
On the critical line: the curve passes exactly through the origin at every zero.
Position t
Zeros passed: 0
Jump to a zero
Drawing
What the curve shows
The zeta function takes a complex number s = σ + it and returns another complex number. Hold σ at ½, let t climb from 0, and mark each result as a point on the plane: the points join into the looping curve above.
Horizontal position is the real part of the result and vertical position is the imaginary part. The small ring marks the origin, where the result is exactly 0. A value of t that sends the curve through the ring gives a zero of the zeta function. The first one is at t ≈ 14.1347.
Why ½ is special
Move the σ slider a little. The loops keep a similar shape, but they no longer pass through the origin. Bring σ back to ½ and the curve returns to it at every zero.
The Riemann hypothesis says that all the nontrivial zeros, infinitely many of them, lie on σ = ½. This page draws only the first 29, up to t = 100. A picture like this shows what the statement means; it is not evidence about the zeros far beyond it.
What this has to do with primes
Riemann found in 1859 that the zeros control how prime numbers are spread. A weighted count of primes can be written as a smooth trend plus one wave for each pair of zeros, and the height t of the zero sets how fast that wave oscillates on a logarithmic scale. The irregular steps of the primes come from adding all of those waves together. Open “Primes from waves” above to add the first 100 of them one by one.
What the prime spiral shows, and what it does not
Put every whole number n at distance n from a center and at an angle of n radians, keep only the primes, and curved arms appear. They look like a secret order in the primes, but they come from 2π. 44 radians is almost 7 full turns and 710 radians is almost 113, so numbers with the same remainder after division by 44 or 710 line up. Primes simply cannot stand where every number shares a factor with 44 or 710. Choose “All whole numbers” in that scene and the empty arms fill in.
The arms are therefore not a picture of the Riemann hypothesis. The link is the count. The number of primes inside a circle of radius x stays close to the smooth prediction li(x), and under the hypothesis the difference is smaller than √x · ln x / 8π for every x from 2,657 on (Schoenfeld, 1976). At x = 1,000,000 there are 78,498 primes: 129.5 fewer than predicted, where the bound allows 549.7.
How it is computed
Values come from Borwein’s alternating series with 140 terms, calculated in your browser. The positions of the zeros come from the LMFDB database, and our tests confirm that the computed value is within one billionth of 0 at each of the 29 zeros drawn here.
The first ten zeros on the line
| Zero | t | Gap from previous |
|---|---|---|
| 1 | 14.134725 | – |
| 2 | 21.022040 | 6.887 |
| 3 | 25.010858 | 3.989 |
| 4 | 30.424876 | 5.414 |
| 5 | 32.935062 | 2.510 |
| 6 | 37.586178 | 4.651 |
| 7 | 40.918719 | 3.333 |
| 8 | 43.327073 | 2.408 |
| 9 | 48.005151 | 4.678 |
| 10 | 49.773832 | 1.769 |
Read the full story with pictures: Can You Hear the Primes?
Have a kinetic sand table? Download Zeta Rosette and Prime Waves, and see photos of them in real sand, from the Sand Table Studio
Interested in other curves from complex numbers? Try the π curve
Frequently asked questions
What is a nontrivial zero?
A value of s in the strip 0 < σ < 1 where ζ(s) = 0. The zeta function is also zero at −2, −4, −6 and so on. Those are called trivial because they are easy to explain.
Does this tool prove anything about the Riemann hypothesis?
No. It draws numerical calculations over a small range so you can see what the statement means.
Are the gaps between zeros regular?
No. They vary from one to the next, and on average they slowly get smaller as t grows.
Are zeta zeros cymatics patterns?
No. They are not the vibration modes of a plate or a dish. The connection to sound is mathematical: each zero acts like the frequency of a wave in a formula for the primes.