Lab · Analytic number theory
Primes from the zeros of ζ
Riemann's explicit formula rebuilds the prime powers from the zeros of the zeta function. Add the zeros one at a time and watch a smooth line turn into a staircase.
Chebyshev's function counts primes with weights, $$\psi(x) = \sum_{p^k \le x} \log p,$$ so it climbs by $\log p$ at every prime power $p^k$. The prime number theorem is the statement $\psi(x) \sim x$. Riemann (1859), in the form made rigorous by von Mangoldt (1895), wrote the error exactly: for $x > 1$ not a prime power, $$\psi(x) = x - \sum_{\rho} \frac{x^\rho}{\rho} - \log 2\pi - \tfrac12 \log\!\big(1 - x^{-2}\big),$$ where $\rho$ runs over the nontrivial zeros of $\zeta(s)$, summed in pairs $\rho, \bar\rho$ in order of $|\mathrm{Im}\,\rho|$. Each pair contributes one oscillating wave $-2\,\mathrm{Re}(x^\rho/\rho)$. The applet uses the first 300 zeros, up to height $541.8$, all of which lie on the line $\mathrm{Re}\, s = \tfrac12$.
Reading the picture
With no zeros the curve is essentially the line $y = x$, the prime number theorem's main term. The first zero, $\rho = \tfrac12 + 14.1347\ldots i$, adds a slow wave of amplitude about $\sqrt{x}/7$. Each later zero oscillates faster, because $x^{\rho} = \sqrt x \, e^{i\gamma \log x}$. Individually the waves look nothing like primes; together they cancel everywhere except at prime powers, where they pile up into jumps of size $\log p$. Near a jump the truncated sum overshoots, exactly like a truncated Fourier series (the Gibbs phenomenon), because the explicit formula is a Fourier expansion of $\psi$ in the variable $\log x$.
The size of the waves explains why the Riemann hypothesis matters. Every zero has real part $\beta \le 1$ and contributes about $x^\beta / |\rho|$. If all $\beta = \tfrac12$, the error in the prime number theorem is $\psi(x) - x = O(\sqrt x \log^2 x)$ (von Koch, 1901), and conversely that bound forces every zero onto the critical line. A single zero off the line would leave a visible wave growing faster than $\sqrt x$.
Sketch of proof: where the formula comes from
The logarithmic derivative of the Euler product is a Dirichlet series over prime powers: $$-\frac{\zeta'(s)}{\zeta(s)} = \sum_{n \ge 1} \frac{\Lambda(n)}{n^s}, \qquad \Lambda(p^k) = \log p, \quad \Lambda = 0 \text{ otherwise}.$$ Perron's formula picks out the partial sums: for $c > 1$ and $x$ not a prime power, $$\psi(x) = \frac{1}{2\pi i} \int_{c - i\infty}^{c + i\infty} \left(-\frac{\zeta'(s)}{\zeta(s)}\right) \frac{x^s}{s}\, ds.$$ Shift the contour to the left. The integrand has poles at $s = 1$ (from the pole of $\zeta$, residue $x$), at $s = 0$ (residue $-\zeta'(0)/\zeta(0) = -\log 2\pi$), at each nontrivial zero $\rho$ (residue $-x^\rho/\rho$, counted with multiplicity) and at the trivial zeros $s = -2n$ (residues $x^{-2n}/2n$, which sum to $-\tfrac12\log(1 - x^{-2})$). The real work, done by von Mangoldt, is to bound $\zeta'/\zeta$ on a sequence of horizontal and vertical segments avoiding the zeros, so that the shifted integrals tend to $0$. $\square$
Further reading
- H. Davenport, Multiplicative Number Theory, 3rd ed., Springer GTM 74, 2000, Chapter 17.
- H. L. Montgomery and R. C. Vaughan, Multiplicative Number Theory I: Classical Theory, Cambridge, 2007, Chapter 12.
- B. Riemann, Über die Anzahl der Primzahlen unter einer gegebenen Grösse, Monatsberichte der Berliner Akademie, 1859.
- B. Mazur and W. Stein, Prime Numbers and the Riemann Hypothesis, Cambridge, 2016.