Skip to content

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

An inequality from Ramanujan’s notebooks

Ramanujan’s inequality for the prime count holds for every number above 38,358,837,682.

Now a theoremRiemann Hypothesis onlyWork left: 0 · Done

π(x)² divided by (e · x / ln x) · π(x/e), for x up to two million. Above the gold line the inequality fails. It keeps failing in this range; the last failure is near 38 billion.

The idea

In his notebooks Ramanujan wrote that π(x)² is less than (e · x / ln x) · π(x/e) for all large enough x. It compares the number of primes up to x with the number up to x/e, where e = 2.718…

It is true in the long run; that follows from the prime number theorem. But “large enough” hides a surprise. The inequality fails again and again for billions, and the last failure is at 38,358,837,682. Proving that this really is the last one needed the Riemann Hypothesis, because past that point one needs to know π(x) more accurately than could otherwise be proved.

Where it stands

Before
Ramanujan wrote that π(x)² < (e·x / ln x) · π(x/e) for all large x. Dudek and Platt showed in 2015 that, if the hypothesis holds, the last whole number that breaks it is 38,358,837,682.
What the proof means for it
Now a theorem A theorem: the inequality holds for every x beyond that number.
Open work to be done
Nothing.
Difficulty of that work
0 · Done Nothing left to prove. The statement is now simply true. (Our own rough estimate.)

What it rests on

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

More results

← Counting square-free numbers The list of all 48Primes with a given remainder are counted as accurately as primes →

Notes and sources

  • Source for the statements on this page: A. Dudek, D. Platt, Exp. Math. 24 (2015).
  • 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