Proof. Assume—for the sake of contradiction—that the elements in the set of all prime numbers are finite, and thus define the following sets,
Here,
and
. To show that
, notice that
is the set of all natural numbers of the form
, where
and
; whereas
includes all natural numbers of the form
, where
. It will now be shown in three parts that for any sufficiently large range
, the total number of natural numbers of the form
is
greater than the total number of natural numbers of the form
. By doing so, it would be concludable that
, for any sufficiently large range
and that the set
contains more elements than
, up to that range
. Which would then be used to form a contradiction.
Part 1: In this part, we will calculate the total number of natural numbers in
up to a given range
. For that, notice that
is the set of all natural numbers of the form
, where
and
. Therefore, for the
ith prime
, the natural numbers of the form
, where
, (that is, multiples of
) are as follows,
Now, the number of natural numbers of the form
, where
, less than or equal to a finite given range
yields,
here,
is the largest integer such that
. This gives:
. Since
in all natural numbers of the form
, therefore
represents a count for the total number of natural numbers of the form
less than or equal to the given range
. Now, to count the total number of natural numbers of the
general form less than or equal to the given range
, the following is done.
where,
is the
mth prime number such that
.
This implies that the total number of natural numbers of the form , , , ⋯, less than or equal to the given range are , respectively. Summing these quantities together results in the total number of natural numbers of the general form , less than or equal to . Let the total number be .
Now, note that the abovementioned largest integer
is always greater than 1, for all
, due to the fact that each
n in the natural number of the form
is an element of
(i.e., greater than 1). As a result,
, as shown below.
where,
represents the total number of natural numbers of the form
, where
and
, less than or equal to
.
Part 2: Similar to the part above, in this part, we will calculate the total number of natural numbers in
up to a given range
. For that, notice that the set
contains all natural numbers of the form
, where
. Therefore, for the
ith natural number
, the natural numbers of the form
, where
, (that is, multiples of
) are as follows,
Now, the total number of natural numbers of the form
less than or equal to a given range
yields,
here,
is the largest integer such that
. This gives:
. Since
in all natural numbers of the form
, therefore
represents a count for natural numbers of the form
less than or equal to the given range
. Now, to count the number of natural numbers of the
general form less than or equal to the given range
, the following is done.
where,
is the
jth natural number in the set
such that
.
This implies that the total number of natural numbers of the form less than or equal to the given range are , respectively. Summing these quantities together results in the total number of natural numbers of the general form , less than or equal to . Let the total number be .
Now, note that the abovementioned largest number
is always greater than 1, for all
, due to the fact that each
n in natural numbers of the form
is an element of
(i.e., greater than 1). As a result,
, as shown below.
where,
represents the total number of natural numbers of the form
, where
, less than or equal to
Part 3: In this part, we compare Equation (
2) with (1) to show that the total number of natural numbers in the set
(that is,
) up to the given range
is
greater than that of in the set
(that is,
) up to that same range
, provided that the given range
is sufficiently large. That is,
Now, observe that since the set of all prime numbers
is assumed to be finite, therefore, the sum
in the denominator of Equation (
3) can never exceed the maximum sum
to diverge
3 to infinity for however large range
is considered, due to the assumption that
. On the other hand, since
is considered infinite, therefore, the sum
in the numerator of Equation (
3) can diverge
4 to infinity if we allow the range
to do so. Therefore, for any sufficiently large
finite range
the following condition is met,
The condition above holds for any sufficiently large
due to the fact that the number of terms in the summations in both the numerator and denominator of Equation (
3) was derived based on the given range.
This implies, for any sufficiently large finite range
, that,
As a result, from Equation (
3), we have the following.
Conclusion: The analysis above suggests that for any sufficiently large range , the total number of natural numbers of the form (i.e., ) is less than that of the form (i.e., ). In other words, the total number of natural numbers in (i.e., ) is greater than the total number of natural numbers in (i.e., ), up to any sufficiently large range , even though both sets have an infinite number of natural numbers when no range is considered.
Contradiction: Based on the conclusion above, for any sufficiently large range , since for , therefore such that . Since , therefore, , , , where . However, if , then, , , where . This implies that , , and therefore—by the definition of a prime number—. However, this contradicts the premise that .
Should be in for even large range , then, since also for (because for and ), therefore such that and the rest follows a similar contradiction.
As a result, the argument can be repeated endlessly for every new chosen sufficiently large range , proving the infinitude of the prime numbers each time by contradiction. This completes the proof. □