Think of prime numbers as the indivisible atoms of multiplication: numbers like 2, 3, 5, and 7 cannot be broken down into smaller whole-number factors, whereas numbers like 6 = 2 × 3 or 12 = 2 × 2 × 3 are built by multiplying primes together. As you count upward into the millions and billions, primes seem to thin out and become harder to find, which raises a natural question: do they eventually run out, or does the supply of primes go on forever?
A prime number is an integer whose only positive integer divisors are and itself; an integer greater than that is not prime is called composite because it factors as with . In Book VII, Definitions 11 and 13 of the Elements (c. 300 BCE), Euclid states this in geometric language: a prime number is "measured by a unit alone," whereas a composite number is "measured by some number."
Our goal is to prove Book IX, Proposition 20 of Euclid's Elements: "Prime numbers are more than any assigned multitude of prime numbers" — in modern notation, the set of all primes is infinite (). Rather than trying to write down a formula that generates every prime in order, Euclid shows how to take any finite collection of primes and construct at least one more prime missing from that collection.
- Prime number
- A whole number greater than 1 that can only be divided evenly by 1 and itself (such as 2, 3, 5, 7, 11).
- Composite number
- A whole number greater than 1 that is not prime, meaning it can be written as a product of two smaller whole numbers greater than 1 (such as 4 = 2 × 2 or 15 = 3 × 5).