Counting primes with the zeta zeros
Move the brass marker up one number at a time and watch for a new prime.
In tile 5, use the second slider to choose how many pairs of zeta zeros go into the estimate.
Swipe across the pictures to see the third column.
1
Drag the marker or use the arrow keys. The upper ticks cover larger intervals.
Primes so far
None yet
Read across from the first ruler. The count rises by one each time you pass a prime.
Make equal rows
1 × 1One dot stands alone. A prime must be greater than 1.
The prime count as steps
0The green dot marks the count from tile 2.No primes yet at 1. Move to 2 for the first step up.
Can zeros trace the steps?
Compare this estimate with tile 4.Slide right to add a pair. Watch the curve change while the steps stay put.
Zeros in the complex plane
Re(s) = ½Across for real part, up for imaginary part.Riemann’s hypothesis says that every nontrivial zero lies on this halfway line. The first three of 32 positive heights appear here. A filled dot means its wave is included. Each has a partner below the real axis.
How can a height count anything?
At each marked point, the Riemann zeta function takes the value zero. The height of that point sets how fast one wave oscillates as you move along the number scale. Add many such waves to a smooth trend and the steps at primes begin to appear.
Try moving from 7 to 8. Eight is a power of 2, so the exact prime count stays at four. Move the wave slider from one pair to 32 and watch the estimate change against that flat step. An extra wave can move the estimate either closer to the exact count or further away at a particular integer.
How the estimate is calculated
The explicit formula first reconstructs a weighted count of primes and their powers. We take differences on either side of each integer, divide by its logarithm, remove the contribution of higher powers and add the resulting estimates. Truncating the sum to the selected number of conjugate pairs leaves ripples, so the estimate can dip or overshoot. Both plots use the same axes.
What makes one of those dots a zero?
At the first dot, the input is ½ + 14.134725…i. Both parts of the output vanish there. In the explorer you can watch the arrows add up and see Hardy’s signed curve cross zero at that height.
The Riemann hypothesis puts every nontrivial zero on the halfway line. Read about the two proof announcements.