TheoremComplete

Prime Number Theorem

The Prime Number Theorem is one of the crowning achievements of mathematics, connecting prime distribution to complex analysis.

TheoremPrime Number Theorem (Hadamard-de la Vallée Poussin, 1896)
π(x)xlogxas x\pi(x) \sim \frac{x}{\log x} \quad \text{as } x \to \infty

Equivalently:

limxπ(x)logxx=1\lim_{x \to \infty} \frac{\pi(x) \log x}{x} = 1

Or in terms of the logarithmic integral:

π(x)Li(x)=2xdtlogt\pi(x) \sim \text{Li}(x) = \int_2^x \frac{dt}{\log t}
Remark

The Prime Number Theorem is equivalent to each of:

  • ψ(x)x\psi(x) \sim x where ψ(x)=nxΛ(n)\psi(x) = \sum_{n \leq x} \Lambda(n)
  • θ(x)x\theta(x) \sim x where θ(x)=pxlogp\theta(x) = \sum_{p \leq x} \log p
  • px1/ploglogx\sum_{p \leq x} 1/p \sim \log \log x
  • pnnlognp_n \sim n \log n (the nn-th prime)
ExampleHeuristic Derivation

If primes were "random" with "probability" 1/logn1/\log n of nn being prime:

π(x)nx1logn2xdnlogn=Li(x)xlogx\pi(x) \approx \sum_{n \leq x} \frac{1}{\log n} \approx \int_2^x \frac{dn}{\log n} = \text{Li}(x) \approx \frac{x}{\log x}

Remarkably, this naive probabilistic argument gives the correct answer!

DefinitionError Terms

With explicit error, the PNT states:

π(x)=Li(x)+O(xeclogx)\pi(x) = \text{Li}(x) + O(x e^{-c\sqrt{\log x}})

Under the Riemann Hypothesis:

π(x)=Li(x)+O(xlogx)\pi(x) = \text{Li}(x) + O(\sqrt{x} \log x)

The error term is directly related to the location of zeros of ζ(s)\zeta(s).

ExamplePrimes in Short Intervals

PNT implies that for xθyxx^{\theta} \leq y \leq x with θ>1/2\theta > 1/2:

π(x+y)π(x)ylogx\pi(x+y) - \pi(x) \sim \frac{y}{\log x}

The number of primes in [x,x+y][x, x+y] is approximately y/logxy/\log x, showing primes have density 1/logx1/\log x at scale xx.

The Prime Number Theorem transforms our understanding of primes from mysterious to statistical, revealing that despite their irregular individual behavior, primes exhibit beautiful regularity in aggregate.