Vol. I a living index of named laws · est. mmxxvi no ads · no tracking
The Law Tomeindex of named laws

The Prime Number Theorem

"Primes thin out predictably: near a number, about one in its natural-log-many is prime."
In plain English

What does The Prime Number Theorem mean?

The number of primes up to a given size is approximately that size divided by its natural logarithm. Equivalently, near a large number the density of primes is about one over its natural logarithm, so the average gap between consecutive primes near it is about that logarithm. Primes become rarer as numbers grow, but in a smooth, predictable way.

In symbols

What is the formula for The Prime Number Theorem?

\lim_{x\to\infty}\frac{\pi(x)}{x/\log(x)}=1
The defining formula as recorded on Wikidata. \lim_{x\to\infty}\frac{\pi(x)}{x/\log(x)}=1
Run the numbers

The Prime Number Theorem calculator

Primes thin out, and they thin out at exactly the rate of one over the natural logarithm.

pi(x) ~ x / ln x

x
Count primes below this
pi(x)
How many primes there are
Primes below x, as x / ln x —
Refined, as x / (ln x - 1) —
Roughly one prime in every —

Computed live from pi(x) ~ x / ln x — the law's own arithmetic, nothing fitted or predicted.

Reliability

Rated Empirical: grounded in studies or measurable evidence. The other 608.

Lineage
1896COINED
How it works

How does The Prime Number Theorem work?

The theorem is an asymptotic statement: the ratio of the true prime count to the estimate approaches one as numbers grow, though the absolute difference does not shrink. A sharper approximation is the logarithmic integral, which accumulates the varying density rather than using a single value. The deep proof runs through the Riemann zeta function: the distribution of primes is controlled by the zeros of that function, and showing it has no zeros on a certain critical line is exactly what forces the asymptotic law.

Figure illustrating The Prime Number Theorem
The Prime Number Theorem — Dcoetzee · CC0 · source
Where you'll see it

What are examples of The Prime Number Theorem?

One in a logarithm Near a million, whose natural logarithm is about fourteen, roughly one number in fourteen is prime; near a billion, whose logarithm is about twenty-one, roughly one in twenty-one: the density steadily thinning.
The estimate improves Dividing by the logarithm consistently undercounts the primes, while the logarithmic integral tracks the true count far more closely, its relative error shrinking as numbers grow.
From guess to proof Gauss as a teenager and Legendre both conjectured the law from tables of primes, but it stood unproven for a century until complex analysis of the zeta function settled it.
Types & variants

What are the types of The Prime Number Theorem?

The logarithmic integral§

The refined approximation to the prime count that integrates the local density, far more accurate than dividing by the logarithm, and asymptotically equal to the true count.

The Riemann hypothesis§

The famous unproven conjecture about the zeros of the zeta function, equivalent to the sharpest possible bound on the error in the prime number theorem.

Why it matters

Why does The Prime Number Theorem matter?

It is the central result on how the primes are distributed, turning their apparent randomness into a precise statistical law and founding analytic number theory. Its connection to the Riemann zeta function ties the primes to one of the deepest open problems in mathematics, the Riemann hypothesis, which governs how good its approximation can be.

Working with it

How do you apply The Prime Number Theorem?

  • Estimate prime counts — approximate how many primes lie below a number by dividing it by its natural logarithm, or better, using the logarithmic integral.
  • Expect predictable thinning — treat the density of primes near a number as about one over its logarithm, so gaps widen slowly as numbers grow.
  • Read it as asymptotic — trust the law's relative accuracy for large numbers, remembering the absolute error grows even as the ratio tends to one.
Where it breaks down

What are the limits of The Prime Number Theorem?

It is asymptotic: an approximation whose relative accuracy improves as numbers grow, while the absolute difference between the true count and the simple estimate actually diverges. The size of its error term is tied to the still-unproven Riemann hypothesis, so the sharpest bound is only conditional. The logarithmic integral overestimates the true count throughout all reachable ranges, yet Littlewood proved the difference changes sign infinitely often, first flipping at a number so vast it is known only within wide brackets.

What it doesn't say

What are common misconceptions about The Prime Number Theorem?

It says the ratio of the true count to the estimate tends to one, not that their difference is small: that difference grows without bound. And though Gauss and Legendre conjectured it, it is now a fully proven theorem, not a mere empirical pattern; only the optimal error term remains open, through the Riemann hypothesis.

Is it real?

Is The Prime Number Theorem real?

Yes, as far as the evidence goes. The Prime Number Theorem is rated Empirical here: it rests on studies or measurements rather than on a saying.

Rated from two sources. 609 of the 1,116 entries carry this rating. How the scale works.

Regularly printedin printed books: one of 144 names in its band, of 903 measured
38 of 51entries in mathematics & proof carry the same rating

The best-known laws are the least likely to rest on measurement.

Origin

Where did The Prime Number Theorem come from?

Conjectured from prime tables by Gauss in the 1790s and Legendre around 1797-1798, and first proved independently in 1896 by Jacques Hadamard and Charles-Jean de la Vallee Poussin using complex analysis of the zeta function; an elementary proof came from Erdos and Selberg in 1948-1949.

How the name spread

When did people start saying “The Prime Number Theorem”?

1800coined 18962019
How often “Prime Number Theorem” appears in printed English, which takes hold around 1935 and peaks around 2006. The idea dates to 1896: the phrase took about 39 years to reach print in any quantity, which is the gap this chart measures. Source: Google Books Ngrams.
Known elsewhere as

What is The Prime Number Theorem called in other languages?

  • Arabicمبرهنة الأعداد الأولية
  • GermanPrimzahlsatz
  • SpanishTeorema de los números primos
  • Frenchthéorème des nombres premiers
  • ItalianTeorema dei numeri primi
  • Japanese素数定理
  • Portugueseteorema dos números primos
  • Russianтеорема о распределении простых чисел
  • Chinese素數定理

9 languages, as recorded on Wikidata. These are names the idea already goes by, not translations we made. The whole index by language.

Sources

Sources & further reading

  1. 1Prime number theorem, Wikipedia. — the asymptotic statement, the logarithmic integral, the zeta-function connection, and the conjecture-to-proof history.secondary
  2. 2Prime number theorem, Wolfram MathWorld. — the statement, the Riemann-hypothesis error bound, and the proof history.secondary

Everything above traces to en.wikipedia.org and mathworld.wolfram.com: two secondary sources, accounts of the original rather than the original itself, which has not been located for this entry. Nothing is written from memory, and the method is written down. Spot an error or a better source? Suggest a fix.

What we checked

  • 1,116entries in the tomeListed one by one on the browse page.
  • 1,116of them citing a sourceOpen any entry: its sources sit at the foot of the page.
  • 2,489source references in allEach is named, and linked wherever the source is online.