Prove Euclid's theorem completely: there are infinitely many primes.
Use proof by contradiction — assume are all the primes, and show that (i) has a prime factor, since , and (ii) that this factor cannot equal any , deriving a contradiction.
In particular, address the subtlety that itself need not be prime (for , ).
Show proof
We argue by contradiction.
Suppose there are only finitely many primes — a complete list ().
Put and ; then .
Lemma: every integer has a prime factor.
Proof (strong induction): for , itself is prime.
For , either is prime or with ; in the composite case the induction hypothesis gives a prime factor , and , so is a prime factor of .
Applying this to yields a prime factor of .
differs from every .
Indeed, for each , so : no divides .
But , hence for every .
So is a prime missing from the supposedly complete list — a contradiction.
Hence there are infinitely many primes. ∎
The subtlety: itself need not be prime.
For , and is composite.
The proof is unaffected — its claim is "\emph{every} prime factor of is new", not " is a new prime".
The proof does pin down that a new prime is among the factors of , but identifying it requires factoring .