A theorem sometimes called "Euclid's first theorem" or Euclid's principle states that if p is a prime and
Euclid's second theorem states that the number of primes is infinite. This theorem, also called the infinitude of primes theorem, was proved by Euclid in Proposition IX.20 of the Elements (Tietze 1965, pp. 7-9). Ribenboim (1989) gives nine (and a half) proofs of this theorem. Euclid's elegant proof proceeds as follows. Given a finite sequence of consecutive primes 2, 3, 5, ..., p, the number
(1) |
known as the ith Euclid number when is the ith prime, is either a new prime or the product of primes. If N is a prime, then it must be greater than the previous primes, since one plus the product of primes must be greater than each prime composing the product. Now, if N is a product of primes, then at least one of the primes must be greater than p. This can be shown as follows.
If N is composite and has no prime factors greater than p, then one of its factors (say F) must be one of the primes in the sequence, 2, 3, 5, ..., p. It therefore divides the product
(2) |
However, in order to divide 1, F must be 1, which is contrary to the assumption that it is a prime in the sequence 2, 3, 5, .... It therefore follows that if N is composite, it has at least one factor greater than p. Since N is either a prime greater than p or contains a prime factor greater than p, a prime larger than the largest in the finite sequence can always be found, so there are an infinite number of primes. Hardy (1967) remarks that this proof is "as fresh and significant as when it was discovered" so that "two thousand years have not written a wrinkle" on it.
A similar argument shows that and
(3) |
must be either prime or be divisible by a prime
It is also true that there are runs of composite numbers which are arbitrarily long. This can be seen by defining
(4) |
where is a factorial. Then the consecutive numbers
(5) | |||
(6) | |||
(7) |
Guy (1981, 1988) points out that while is not necessarily prime, letting q be the next prime after
Divide, Euclid Number, Prime Number
Ball, W. W. R. and Coxeter, H. S. M. Mathematical Recreations and Essays, 13th ed. New York: Dover, p. 60, 1987.
Conway, J. H. and Guy, R. K. "There are Always New Primes!" In The Book of Numbers. New York: Springer-Verlag, pp. 133-134, 1996.
Cosgrave, J. B. "A Remark on Euclid's Proof of the Infinitude of Primes." Amer. Math. Monthly 96, 339-341, 1989.
Courant, R. and Robbins, H. What Is Mathematics?: An Elementary Approach to Ideas and Methods, 2nd ed. Oxford, England: Oxford University Press, p. 22, 1996.
Derbyshire, J. Prime Obsession: Bernhard Riemann and the Greatest Unsolved Problem in Mathematics. New York: Penguin, p. 34, 2004.
Dunham, W. "Great Theorem: The Infinitude of Primes." Journey through Genius: The Great Theorems of Mathematics. New York: Wiley, pp. 73-75, 1990.
Flannery, S. and Flannery, D. In Code: A Mathematical Journey. London: Profile Books, pp. 42-43, 2000.
Guy, R. K. §A12 in Unsolved Problems in Number Theory. New York: Springer-Verlag, 1981.
Guy, R. K. "The Strong Law of Small Numbers." Amer. Math. Monthly 95, 697-712, 1988.
Hardy, G. H. A Mathematician's Apology. Cambridge, England: Cambridge University Press, 1992.
Havil, J. Gamma: Exploring Euler's Constant. Princeton, NJ: Princeton University Press, p. 28, 2003.
Ribenboim, P. The New Book of Prime Number Records. New York: Springer-Verlag, pp. 3-12, 1989.
Tietze, H. Famous Problems of Mathematics: Solved and Unsolved Mathematics Problems from Antiquity to Modern Times. New York: Graylock Press, pp. 7-9, 1965.