Lilavati
← The Magazine

Why the Primes Never End

Lilavati Editorial · 24 June 2026

Prime numbers thin out as you climb the number line, yet they never run dry. Euclid's proof is a small marvel: suppose there were only finitely many primes p1,p2,,pnp_1, p_2, \dots, p_n. Form

N=p1p2pn+1.N = p_1 p_2 \cdots p_n + 1.

Every prime divides the product but leaves remainder 11 when dividing NN, so NN has a prime factor outside the list — a contradiction. The primes are infinite.

The deeper question is how they thin out. The Prime Number Theorem says the count of primes below xx behaves like x/lnxx / \ln x, a result that took a century and the machinery of complex analysis to pin down.