Skip to content

After the Riemann Hypothesis · result 2 of 48 · Counting primes

The gap from one prime to the next

After a prime p, the next prime comes within (22/25) · √p · ln p.

Now a theoremRiemann Hypothesis onlyWork left: 5 · Famous open problem

Record gaps between primes up to two million (green dots), the bound (22/25) · √p · ln p that is now a theorem (gold), and Cramér’s guess (ln p)² (dashed). The records hug the dashed curve, far below the gold one.

The idea

Primes thin out, so the gaps between them grow. After 113 there is no prime until 127. After 1,327 the wait is 34. How long can a wait be?

On average the gap near p is ln p, tiny. The hard question is the worst case. If the primes had a hidden lumpiness there could be long deserts. The Riemann Hypothesis rules out lumpiness above the √p scale, and that gives Cramér’s bound, with the constant 22/25 worked out in 2019.

The truth is believed to be far smaller, about (ln p)². The gap between the proved bound and the believed truth is why Legendre’s question about squares is still open.

Where it stands

Before
Harald Cramér showed in 1920 that the Riemann Hypothesis keeps every gap between consecutive primes below about √p · ln p. In 2019 Carneiro, Milinovich and Soundararajan gave the constant: for every prime p > 3 the next prime comes within (22/25) · √p · ln p.
What the proof means for it
Now a theorem A theorem. Before, the best proved gap was about p raised to the power 0.525 (Baker, Harman and Pintz, 2001), and only for large p.
Open work to be done
Legendre’s conjecture, a prime between every two consecutive squares, needs gaps a little under 2√p, just beyond this. Cramér’s own guess, gaps of about (ln p)², is far beyond it.
Difficulty of that work
5 · Famous open problem Untouched. The Riemann Hypothesis was never known to imply it. (Our own rough estimate.)

What it rests on

This result needs only the first box. Outlined boxes are the ones it uses.

More results

← How well li(x) counts the primes The list of all 48A prime between every two consecutive cubes, and Mills’ constant →

Notes and sources

  • Source for the statements on this page: H. Cramér (1920); E. Carneiro, M. Milinovich, K. Soundararajan, Comment. Math. Helv. 94 (2019).
  • The figure is computed in your browser from first principles each time the page loads. It illustrates the statement; it does not prove it.
  • What was proved and certified in November 2026, what it covers and what it does not: After the Riemann Hypothesis. This page is a summary for general readers.

← Back to After the Riemann Hypothesis