Learn/Number Theory/Infinitude of Primes
Number Theory • Topic 4

Infinitude of Primes

The fact that primes never run out is one of the oldest and most celebrated results in mathematics.

Euclid's Theorem

Theorem (Euclid's Theorem)
[cite_start]There are infinitely many prime numbers[cite: 88].

Proof. Suppose there are only finitely many primes . Consider the number .

  • , so it must have a prime divisor .
  • If were one of the , then would divide , which is impossible.
  • Thus, is a new prime not in our list. [cite_start]Contradiction[cite: 89, 90].

Special Forms

We can prove there are infinitely many primes of specific forms using similar logic.

Primes of form

Suppose there are finitely many: . Consider .
  • must have prime factors.
  • Not all prime factors can be of the form (since the product of such numbers is ).
  • Thus, at least one prime factor must be of form .
Note
This simple modification does not work easily for primes of form (requires quadratic residues).

Practice Problems

Exercise (Problem 1)
Prove there are infinitely many primes of the form .
Exercise (Problem 2)
Prove that for any integer , there is a prime such that .
Exercise (Problem 3)
Show that there are arbitrarily large gaps between consecutive primes. (Hint: Consider the sequence ).