The primes are a rhythm.
The music of the primes: first a rhythm, then rebuilt from waves alone, as Riemann's formula of 1859 says it can be. Headphones on: left and right mean something.
Count sixteenths from zero. The kick lands on every beat, a rim shot on every prime: the left speaker for primes one above a multiple of four (5, 13, 17), the right for primes three above (3, 7, 11). The right side nearly always has more so far; the left first leads at step 26,861, 54 minutes in. There's a button for that.
The Riemann hypothesis, proved in November 2026, says the primes stray from their average as little as they possibly can. The why, from scratch: the Riemann hypothesis, explained.
The Riemann synth The zeta zeros as notes. Free, in your browser. Play itThe waves that rebuild them
No primes play here: only waves, one for each of the 35,673 zeta zeros up to height 30,000 and 42,291 from its sister, Dirichlet's L-function, which tells the left primes from the right, all equally loud. Where they add up you hear a click, on a prime or a prime power (4, 8, 9…).
How to play it
- Press play. Every click is a prime or a prime power. The kick is the first wave: too slow to hear as a note, so each of its crests gets a drum, at 124.
- Switch off Side: Dirichlet and the primes collapse to the middle. Switch it on and they split left and right: Riemann's zeros are the mid channel, Dirichlet's the side.
- Pull the slider down to one wave and climb back up; the buttons 1 to 5 put a drum on each of the first five waves. One wave already knows roughly where 2, 3, 5 and 7 are.
- Switch on Mark the real primes: a hat on every true prime power. It lands on the clicks.
- Then move the last slider and break the theorem: one wave leaves the line and grows until it drowns the rest. That is what the proof rules out.
The instrument
The same zeros as an instrument
Take 16, 32 or 64 of these waves in a row and speed them up until they are a note: that is one note of the Riemann synth. One knob takes it from a supersaw down to struck metal, and in the preset Listen to the primes the primes arrive inside the note. Free, in stereo, in your browser.
Play the synthWhere this comes from
What plays is the right-hand side of Riemann's explicit formula (1859), in the form von Mangoldt proved in 1895, written for a timeline. The zeros were computed for this page, zeta's with Arb and the L-function's with our own code, compared with Arb and counted against the counting formula. The sound was then checked against the primes: 222 prime powers, each click within one sample of its place and within 0.001 of its strength, in both speakers. That the zeros behave like a spectrum of the primes is an old picture; Marcus du Sautoy's book gave it its best-known name, the music of the primes. Michael Berry showed in 2012 why the music of the primes is hard to hear. Enough waves, from the kick's two beats a second up to 4.4 kHz, get round it.
Sources: B. Riemann, Über die Anzahl der Primzahlen unter einer gegebenen Grösse (1859) · M. V. Berry, Hearing the music of the primes: auditory complementarity and the siren song of zeta (J. Phys. A 45, 2012) · B. Mazur and W. Stein, Prime Numbers and the Riemann Hypothesis (2016) · M. Rubinstein and P. Sarnak, Chebyshev's bias (1994); J. Leech (1957) for 26,861 · D. Platt and T. Trudgian, The Riemann hypothesis is true up to 3·10¹² (2021) · Lean FRO and Mathlib Initiative, Lean verification of the Riemann Hypothesis (21 Nov 2026) · L. Alpöge, untitled note (20 Nov 2026).
