Back to Learn

Can You Hear the Primes? How Waves Build the Prime Staircase

The Riemann hypothesis in pictures and sound, with no calculus needed

Key takeaways

  • A weighted count of the primes, called ψ(x), equals a smooth trend plus one wave for every zero of the Riemann zeta function.
  • We measured it: from 2 to 60, the typical error falls from 1.15 with no waves to 0.15 with the first 100.
  • A zero at height t gives a wave with a fixed pitch on a logarithmic scale. Its distance from the line ½ decides how fast the wave grows.
  • The Riemann hypothesis says that every nontrivial zero lies on ½, so that no wave outgrows the others.
  • You can watch and hear this in the free Riemann Zeta Visualizer, with no sign-up.

By the CymaVis team · Updated

The short answer

Can you hear the prime numbers? In a precise sense, yes. The steps of the primes can be taken apart into waves, the way a chord can be taken apart into tones. The “pitches” of those waves are the zeros of the Riemann zeta function. The first three are at t ≈ 14.135, 21.022 and 25.011.

What you cannot hear directly is their pitch in hertz. Those numbers are not vibrations in air, so any tool has to choose how to turn them into sound. Ours multiplies them by 8, so the first zero becomes a tone of about 113 Hz.

The prime staircase

A prime is a whole number greater than 1 that only 1 and itself divide: 2, 3, 5, 7, 11 and so on. Walk along the number line and step up at each one. The result is a staircase with uneven treads.

The version that fits waves best is Chebyshev’s function ψ(x). It rises by log p at every prime p, and by log p again at each power of that prime (4, 8 and 9, for example). Primes make the main steps, and the prime powers add a few smaller ones.

ψ(10) = log 2 + log 3 + log 2 + log 5 + log 7 + log 2 + log 3 ≈ 7.83

Steps at 2, 3, 4, 5, 7, 8 and 9.

From far away the staircase looks almost straight: ψ(x) stays close to x. Up close it is jagged. The question is what the jaggedness is made of.

Adding the waves, one by one

Riemann’s 1859 paper, completed later by Hans von Mangoldt, gives an exact recipe. Start with a smooth curve close to x, then add one wave for each zero.

ψ(x) = x − log 2π − ½ log(1 − 1/x²) − Σ x^ρ / ρ

The sum runs over the nontrivial zeros ρ. A zero and its mirror image combine into one real wave. At a jump the formula gives the midpoint.

Three panels showing the sum of 0, 10 and 100 waves next to the white prime staircase up to 60. The sum changes from a smooth line into steps.
The same staircase with 0, 10 and 100 waves added. Captured from the CymaVis tool.

We measured how well the sum fits by comparing both sides at 58 points halfway between the whole numbers from 2 to 60:

Waves addedTypical (RMS) errorWhat you see
01.146Only the smooth trend
100.655The line begins to bend at the first steps
300.433Most early steps are visible
1000.154Steps up to 60, with small ripples left over

No finite number of waves makes perfect corners. The ripples shrink as more are added, but an exact staircase needs infinitely many.

Why each zero is like a musical tone

On an ordinary number line each wave stretches out as x grows. Redraw it on a logarithmic scale, where each step multiplies instead of adds, and the stretching disappears: every wave repeats at a steady rate. The height t of the zero is that rate.

For the first zero, one full cycle passes each time x grows by about 56%. Higher zeros oscillate faster and their waves are smaller, like the overtones of an instrument. Unlike the overtones of a string, they are not whole-number multiples. The second zero is 1.487 times the first and the third is 1.769 times, so playing them together does not give a neat harmony.

That is why we avoid the popular line that the zeros “sound in tune”. What is special about them is something else: how loud each one stays.

What the line ½ means

Every nontrivial zero is a complex number with two parts. The height t sets the pitch of its wave. The real part sets how quickly the wave grows: a zero with real part β makes a wave whose size grows like x^β.

If β is ½, the wave grows like √x. The Riemann hypothesis says that this is true for every one of them. If some zero were off the line, at 0.8 say, its wave would outgrow the rest. Compared with √x it would be about 4 times as large at x = 100 and about 63 times as large at x = 1,000,000. Primes would then swing further from their trend than they do.

Try it: in Primes from waves, tick “What if two zeros left the line?”. It is an imaginary example, and the staircase is pulled visibly out of shape.

You can see the same line in another way in the zeta curve. With σ = ½ the curve passes through the origin at every zero, and the sound goes silent there. Move σ a little and it misses.

Has the Riemann hypothesis been proved? (status on November 30, 2026)

  • November 20: Levent Alpöge, a mathematician at Anthropic, released a formal proof written in the Lean proof language, which he says he found working with the AI model Claude (Scientific American).
  • November 21: the Lean FRO and the Mathlib Initiative jointly certified that “both the statement and the proof of the Riemann Hypothesis are correct”, after several independent checkers accepted it (joint statement).
  • Still open: no complete account that people can read and follow had been published when we checked (Wikipedia), and we found no journal peer review. The Clay Mathematics Institute page still marks the problem “Active” (Clay).

In short, computers have checked the proof and mathematicians are still working to understand it. Nothing in our tool depends on the outcome: it draws zeros in a range where their positions have long been known by calculation. For transparency, this article was drafted with help from Claude, which is made by the company where the author of the proof works.

What the visualizer does, and its limits

QuestionAnswer
Cost and sign-upFree, no account, runs in the browser on phones and computers
What you can changeWaves from 0 to 100, σ from 0.3 to 0.9, t from 0 to 100, speed, 12 color themes
What you getLive picture and sound, PNG, video, and a link that reopens the same settings
RangePrimes up to 60; the first 100 zeros in the staircase, the first 29 on the curve
AccuracyZeros from the LMFDB database; computed values at the 29 drawn zeros are within one billionth of 0
What is our choiceThe hertz values, tone colors and volume. The formulas and zeros are not
What it is notEvidence for or against the hypothesis, or a cymatics pattern. Zeta zeros are not the vibration modes of a plate

Frequently asked questions

What does the Riemann hypothesis say in simple terms?

The primes follow a smooth trend plus a set of waves. The hypothesis says that all of those waves grow at the same slow rate, like the square root of x, so the primes stay as close to their trend as such waves allow.

Can you really hear prime numbers?

You can hear the waves that add up to the prime staircase, once their rates are scaled into the audible range. The scaling is a choice. The relative pitches come from the zeros of the zeta function.

Is there a free tool to visualize the Riemann zeta function?

Yes. The CymaVis Riemann Zeta Visualizer at cymavis.com/riemann-zeta is free and needs no account. It draws ζ(½ + it) through its first 29 zeros and builds the prime staircase from up to 100 waves, with sound.

Do the zeros of the zeta function sound harmonious?

Not especially. Their ratios (1, 1.487, 1.769 and so on) are not simple fractions, so together they sound more like a bell or a cluster than a chord.

Where do the zeros come from?

They are the solutions of ζ(s) = 0 with real part between 0 and 1. Our list is the first 100 from the LMFDB database, starting at t ≈ 14.134725.

Further reading

Keep reading