In the book “Proofs from THE BOOK”, there are 6 proofs on the infinitude of primes. All of them are very elegant and beautiful but I really liked the reasoning behind the following one, coined by Paul Erdos.
We shall prove that the series
diverges. That would imply that the set of prime numbers in infinite because otherwise their sum would converge.
Let be the sequence of primes numbers written in increasing order.
Assume that the series above converges. Then, there must exist some number such that
Call the primes for
the small primes and the rest the big primes.
For any natural number , it must then hold that
Now, let be the number of positive integers
which are divisible by at least one big prime and let
be the number of positive integers less than or equal to
whose prime divisors are all small primes.
We will show that , thus arriving at a contradiction (it should be
.
First, note that counts the number of positive integers less than or equal to
that are multiples of
.
We have that
and this equation allows us to estimate . For
, let
be a positive integer whose prime divisors are all small primes. Let
, where
is not a square of an integer. Since
cannot contain the same small prime number twice in its prime factor decomposition, it can take exactly
values. And given that
, we have that
If we then take , we can see that
.
Adding the two inequalities together yields the desired result.