ArticleslgStudy

mathematics

Euclid's theorem

Euclid's theorem is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Euclid's theorem rather than just read about it. In short: Euclid's theorem is a fundamental statement in number theory that asserts that there are infinitely many prime numbers. It was first proven by Euclid in his work Elements.

Euclid's theorem — main illustration
Euclid's theorem — illustration

Key takeaways

  • Euclid's theorem belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Euclid's theorem to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Euclid's theorem from memory before moving on to harder problems.

Reference excerpt

Euclid's theorem is a fundamental statement in number theory that asserts that there are infinitely many prime numbers. It was first proven by Euclid in his work Elements. There are at least 200 proofs of the theorem.

Euclid's proof Euclid offered a proof in his work Elements (Book IX, Proposition 20), which is paraphrased here. Consider any finite list of prime numbers p1, p2, ..., pn. It will be shown that there exists at least one additional prime number not included in this list. Let P be the product of all the prime numbers in the list: P = p1p2⋅⋅⋅pn. Let q = P + 1. Since q is either prime or not:

If q is prime, then there is at least one more prime that is not in the list, namely, q itself. If q is not prime, then some prime factor p divides q. If this factor p were in our list, then it would also divide P (since P is the product of every number in the list). If p divides P and q, then p must also divide the difference of the two numbers, which is (P + 1) − P or just 1. Since no prime number divides 1, p cannot be in the list. This means that at least one more prime number exists that is not in the list. This proves that for every finite list of prime numbers there is a prime number not in the list. In the original work, Euclid denoted the arbitrary finite set of prime numbers as A, B, Γ. Euclid is often erroneously reported to have proved this result by contradiction beginning with the assumption that the finite set initially considered contains all prime numbers, though it is actually a proof by cases, a direct proof method. The philosopher Torkel Franzén, in a book on logic, states, "Euclid's proof that there are infinitely many primes is not an indirect proof [...] The argument is sometimes formulated as an indirect proof by replacing it with the assumption 'Suppose q1, ..., qn are all the primes'. However, since this assumption isn't even used in the proof, the reformulation is pointless."

Variations Several variations on Euclid's proof exist, including the following: Let n>1 be a positive integer. Let N=n!+1, with n!=1⋅2⋯n. By the fundamental theorem of arithmetic, N has some prime divisor p. On the other hand, the integers 2,…,n are not divisors of N (it gives a remainder of 1 when divided by each). Hence p>n. Therefore, for every positive integer there exists a prime number greater than it. The conclusion is that the number of primes is infinite.

Euler's proof Another proof, by the Swiss mathematician Leonhard Euler, relies on the fundamental theorem of arithmetic: that every integer has a unique prime factorization. What Euler wrote (not with this modern notation and, unlike modern standards, not restricting the arguments in sums and products to any finite sets of integers) is equivalent to the statement that ∏p∈Pk11−1p=∑n∈Nk1n, where Pk denotes the set of the k first prime numbers, and Nk is the set of the positive integers whose prime factors are all in Pk. To show this, one expands each factor in the product as a geometric series, and distributes the product over the sum (this is a special case of the Euler product formula for the Riemann zeta function). ∏p∈Pk11−1p=∏p∈Pk∑i≥01pi=(∑i≥012i)⋅(∑i≥013i)⋅(∑i≥015i)⋅(∑i≥017i)⋯=∑ℓ,m,n,p,…≥012ℓ3m5n7p⋯=∑n∈Nk1n. In the penultimate sum, every product of primes appears exactly once, so the last equality is true by the fundamental theorem of arithmetic. In his first corollary to this result Euler denotes by a symbol similar to ∞ the "absolute infinity" and writes that the infinite sum in the statement equals the "value" ⁠log⁡∞⁠, to which the infinite product is thus also equal (in modern terminology this is equivalent to saying that the partial sum up to x of the harmonic series diverges asymptotically like ⁠log⁡x⁠). Then in his second corollary, Euler notes that the product ∏n≥211−1n2 converges to the finite value 2, and there are consequently more primes than squares. This proves Euclid's theorem.

In the same paper (Theorem 19) Euler in fact used the above equality to prove a much stronger theorem that was unknown before him, namely that the series ∑p∈P1p is divergent, where P denotes the set of all prime numbers (Euler writes that the infinite sum equals ⁠log⁡log⁡∞⁠, which in modern terminology is equivalent to saying that the partial sum up to x of this series behaves asymptotically like ⁠log⁡log⁡x⁠).

Erdős's proof Paul Erdős gave a proof that also relies on the fundamental theorem of arithmetic. Every positive integer has a unique factorization into a square-free number r and a square number s2. For example, 75,600 = 24 33 52 71 = 21 ⋅ 602. Let N be a positive integer, and let k be the number of primes less than or equal to N. Call those primes p1, ... , pk. Any positive integer a which is less than or equal to N can then be written in the form a=(p1e1p2e2⋯pkek)s2, where each ei is either 0 or 1. There are 2k ways of forming the square-free part of a. And s2 can be at most N, so s ≤ √N. Thus, at most 2k √N numbers can be written in this form. In other words, N≤2kN. Or, rearranging, k, the number of primes less than or equal to N, is greater than or equal to ⁠1/2⁠log2 N. Since N was arbitrary, k can be as large as desired by choosing N appropriately.

Furstenberg's proof

In the 1950s, Hillel Furstenberg introduced a proof by contradiction using point-set topology. Define a topology on the integers ⁠ℤ⁠, called the evenly spaced integer topology, by declaring a subset ⁠U⊆ℤ⁠ to be an open set if and only if it is either the empty set, ⁠∅︀⁠, or it is a union of arithmetic sequences S(a,b) (for ⁠a≠0⁠), where S(a,b)={an+b∣n∈ℤ}=aℤ+b. Then a contradiction follows from the property that a finite set of integers cannot be open and the property that the basis sets S(a,b) are both open and closed, since ℤ∖{−1,+1}=⋃p primeS(p,0) cannot be closed because its complement is finite, but is closed since it is a finite union of closed sets.

Recent proofs

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Euclid's theorem

Start with the simplest possible case. Write down what Euclid's theorem claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Euclid's theorem before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Euclid's theorem ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Euclid's theorem

In research
Euclid's theorem appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Euclid's theorem in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Euclid's theorem is common in secondary-school and first-year university syllabi. It links to neighbouring topics Infinity, Theorems about prime numbers, so understanding it makes those chapters shorter.
In everyday life
Look for Euclid's theorem outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Euclid's theorem” →

How to study Euclid's theorem in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Euclid's theorem means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Euclid's theorem out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Euclid's theorem in simple terms?

Euclid's theorem is a fundamental statement in number theory that asserts that there are infinitely many prime numbers. It was first proven by Euclid in his work Elements.

Why does Euclid's theorem matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Euclid's theorem?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Euclid's theorem.

Tags

  • Infinity
  • Theorems about prime numbers

Keep exploring