Skip to content

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

How well li(x) counts the primes

The logarithmic integral li(x) counts the primes up to x with an error no bigger than about the square root of x.

Now a theoremRiemann Hypothesis onlyWork left: 4 · Very hard

The miss, li(x) − π(x), for x up to one million (green), inside Schoenfeld’s band ±√x · ln x / (8π) (gold). The band is now a theorem. Notice that the green line stays above zero here: see the page on Skewes’ number.

The idea

Gauss noticed as a boy that near a number x about one number in ln x is prime. Add those chances up from 2 to x and you get the logarithmic integral, li(x). It is a very good guess for π(x), the true count: up to a million there are 78,498 primes and li gives 78,628.

The guess is never exactly right, and the size of the miss is the whole story of the Riemann Hypothesis. Each zero of the zeta function adds a wave to the prime count. A zero on the critical line adds a wave of size about √x. A zero off the line would add a bigger one. So “all zeros on the line” and “the miss is about √x” are the same statement.

Schoenfeld’s inequality puts a number on it: the miss is less than √x · ln x / (8π) once x is at least 2,657.

Where it stands

Before
The prime number theorem (1896) says the number of primes up to x, written π(x), is close to the logarithmic integral li(x). How close was the question. Helge von Koch showed in 1901 that the Riemann Hypothesis is the same statement as “the error is at most about √x · ln x”. Lowell Schoenfeld made it exact in 1976: if the hypothesis holds, the error is less than √x · ln x / (8π) for every x ≥ 2,657.
What the proof means for it
Now a theorem Schoenfeld’s inequality is a theorem. For a number near 10²⁰ it pins π(x) down to about one part in 10¹⁰. Before, the best proved error was far weaker than any power saving.
Open work to be done
The bound is close to the truth but not exact: Littlewood proved in 1914 that the error is sometimes almost as large as √x. Its true size is still unknown.
Difficulty of that work
4 · Very hard The Riemann Hypothesis is not enough. A new idea about the zeros or the primes is needed, and no one knows how to get 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

The list of all 48The gap from one prime to the next →

Notes and sources

  • Source for the statements on this page: H. von Koch (1901); L. Schoenfeld, Math. Comp. 30 (1976).
  • 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