See How Things Work

The sieve of Eratosthenes

Unit
Factors, Multiples & Primes
Part
2. Prime Numbers
Lesson
2.3

The sieve of Eratosthenes finds every prime up to a chosen number N at once: list the numbers from 2 to N and cross out the multiples of each prime in turn. This lesson carries out the sieve, proves that the numbers left are exactly the primes, shows why it may stop at the first prime p with p × p > N, and tells what is known of its history.

The method

The test of the lesson “Prime and composite numbers” decides about one number at a time. To find all the primes up to some number, it is quicker to remove the composite numbers instead: a multiple k × p of a number p, with k ≥ 2, is never prime, so whole families of numbers can be struck out together. The method is named after Eratosthenes, and it finds all the primes up to a given number.⁠[1][2]

Definition (The sieve of Eratosthenes).

To find every prime up to a whole number N ≥ 2:

  1. Write the whole numbers from 2 to N in order.
  2. Let p be the smallest number that is neither circled nor crossed out. Circle it.
  3. Cross out the multiples of p that come after it: 2 × p, 3 × p, 4 × p, …, up to N. Some may already be crossed out.
  4. If the smallest number now neither circled nor crossed out has q × q > N, or if there is none, stop. Otherwise return to step 2.

The numbers not crossed out, circled or not, are the primes up to N.

The scheme is to write the numbers from 2 to N and strike out all the composite numbers by striking out the multiples of the primes⁠[3]: the numbers divisible by 2 other than 2, then those divisible by 3 other than 3, the first number left after 2, and so on.⁠[4] The numbers that do not fall through the “sieve” are the primes.⁠[5] The number 1 is not written at all: it is neither prime nor composite (lesson “Why 1 is not prime”).

036912151821242730jumps of 3
Figure. The multiples of 3 up to 30, reached from 0 by jumps of 3. Sieving with 3 keeps 3 and crosses out the later ones, 6, 9, 12, …, 30: each is k × 3 with k ≥ 2, so it has the factor 3 strictly between 1 and itself and is composite. The jumps land only on multiples of 3, so a number that 3 does not divide is never crossed out by 3.
Example (The primes up to 30).

Run the sieve with N = 30.

  1. Write 2, 3, 4, …, 30: 29 numbers.
  2. 2 is the smallest number left: circle it and cross out 4, 6, 8, …, 30. That is 14 numbers.
  3. 3 is the smallest number left: circle it and cross out 6, 9, 12, …, 30. New ones: 9, 15, 21, 27 (the even multiples were already gone).
  4. 5 is next, and 5 × 5 = 25 ≤ 30: circle it and cross out 10, 15, 20, 25, 30. New: only 25.
  5. 7 is next, and 7 × 7 = 49 > 30: stop.

Answer: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29: ten primes. Check: 14 + 4 + 1 = 19 numbers were crossed out, and 29 − 19 = 10 are left.

Why the sieve works

Three facts make the sieve correct: it never crosses out a prime, it crosses out every composite number, and it may stop early.

Theorem .

Run the sieve up to N. Then:

  1. every number crossed out is composite;
  2. every number that is circled is prime;
  3. every composite number c ≤ N is crossed out, and the first time it is crossed out is when its smallest prime factor is circled, even if the sieve stops as in step 4.

So the numbers left at the end are exactly the primes up to N.

Proof.

(1) A number crossed out is k × p with k ≥ 2 and p ≥ 2. Then p is a factor with 1 < p < k × p, so the number is composite, by the Proposition of the lesson “Prime and composite numbers”.

(3) Let c ≤ N be composite and s its smallest factor greater than 1. By the lesson “Prime and composite numbers”, s is prime and s × s ≤ c ≤ N. By (1), s is never crossed out. The sieve circles numbers in increasing order, each time the smallest number left. It cannot stop while s is neither circled nor crossed out: the smallest number left, q, would then satisfy q ≤ s, so q × q ≤ s × s ≤ N. So s is circled at some step, and then c = (c ÷ s) × s, with c ÷ s ≥ 2, is crossed out, if it was not already. It was not: a number p circled before s is less than s, and if p crossed out c, then p would be a factor of c greater than 1 and smaller than s, which is impossible.

(2) A circled number p was not crossed out when it was circled. If it were composite, its smallest prime factor s would be smaller than p, and by (3), applied to c = p, p would have been crossed out when s was circled, before p was reached. So p is prime.

At the end, by (1) no prime is crossed out, and by (3) every composite number is. So the numbers left are exactly the primes from 2 to N.

The key to (3) is the theorem of the lesson “Prime and composite numbers”: a composite number not exceeding 100, say, must have a prime factor not exceeding 10, so sieving with 2, 3, 5 and 7 is enough to remove every composite number up to 100.⁠[6][7]

Proposition (where the crossing can start).

When the sieve circles p, every multiple k × p ≤ N with 2 ≤ k < p has already been crossed out. So step 3 may start at p × p.

Proof.

Let 2 ≤ k < p. The smallest factor s of k greater than 1 is a prime with s ≤ k < p, and s divides k × p by the rule on multiples of the lesson “Divisibility”. So k × p has a prime factor smaller than p, and its smallest prime factor is smaller than p too. By part (3) of the Theorem, k × p was crossed out when that prime was circled, before p.

For example, when the sieve reaches 3, the multiples 6, 12, 18, … are already gone, and the first new one is 3 × 3 = 9.⁠[8] The stopping rule in step 4 is the same fact seen from the end: once q × q > N, no multiple of q from q × q on is on the list.

The primes up to 100

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100crossed out by 2crossed out by 3crossed out by 5crossed out by 7prime1: neither
Figure. The finished sieve up to 100. Each composite number is struck through and shaded in the color of its smallest prime factor, the prime that crosses it out first: 2 (49 numbers), 3 (16 new), 5 (6 new: 25, 35, 55, 65, 85, 95) and 7 (3 new: 49, 77, 91). The 25 numbers left, circled, are the primes up to 100.
Example (The primes up to 100).

Run the sieve with N = 100 and count what each prime crosses out first.

  1. 2 crosses out 4, 6, …, 100: the 49 even numbers from 4 to 100.
  2. 3 crosses out, new, the odd multiples of 3 from 9 to 99: 9, 15, 21, …, 99, which is 16 numbers.
  3. 5 crosses out, new, 25, 35, 55, 65, 85 and 95: 6 numbers (the other multiples of 5 are multiples of 2 or 3 as well).
  4. 7 crosses out, new, 49, 77 and 91: 3 numbers. The next number left is 11, and 11 × 11 = 121 > 100: stop.

Answer: 49 + 16 + 6 + 3 = 74 composite numbers are crossed out, and 99 − 74 = 25 numbers are left: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89 and 97, the primes less than 100.⁠[9]

Example (The smallest cases).

Run the sieve with N = 3 and with N = 10.

  1. N = 3: the list is 2, 3. Circle 2; its first multiple after it, 4, is past 3, so nothing is crossed out. The next number left is 3, and 3 × 3 = 9 > 3: stop. Both numbers are left, and both are prime.
  2. N = 10: circle 2 and cross out 4, 6, 8, 10.
  3. The next number left is 3, and 3 × 3 = 9 ≤ 10: circle 3 and cross out 6 and 9. The new one is 9.
  4. The next number left is 5, and 5 × 5 = 25 > 10: stop.

Answer: up to 3 the primes are 2 and 3; up to 10 they are 2, 3, 5 and 7.

Example (Going past 100).

Which primes must the sieve use for N = 150, and which numbers does the new prime cross out first?

  1. The primes p with p × p ≤ 150 are 2, 3, 5, 7 and 11 (11 × 11 = 121, while 13 × 13 = 169).
  2. 11 crosses out first only the multiples of 11 whose smallest prime factor is 11. Starting at 11 × 11: 121 = 11 × 11, 132 = 11 × 12 (even, already gone), 143 = 11 × 13. The next, 154, is past 150.
  3. So 121 and 143 are the only numbers the sieve with 11 crosses out first.

Answer: 2, 3, 5, 7 and 11; the prime 11 removes 121 and 143. A sieve up to 100 that is simply continued to 150 with 2, 3, 5 and 7 alone would wrongly keep 121 and 143. The primes between 100 and 150 are 101, 103, 107, 109, 113, 127, 131, 137, 139 and 149.

Example (A common mistake: stopping too soon).

Someone sieves up to 60 with 2, 3 and 5, then stops and lists the numbers left as primes. Check the list.

  1. The next number left after 5 is 7, and 7 × 7 = 49, which is at most 60. So the sieve may not stop yet.
  2. Sieving with 7 crosses out 49 = 7 × 7 (its other multiples up to 60, 14, 21, 28, 35, 42 and 56, are already gone).
  3. So the list wrongly contains 49.

Answer: the primes up to 60 are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53 and 59, seventeen of them; 49 is not among them. The stopping test looks at the next number left, not at the last prime used.

Game

Run the sieve

Round
1
Score
0
Streak
0

Find every prime up to 24. Tap a number to sieve with it: it is circled, and its multiples 2 × p, 3 × p, … are crossed out. When every number left is prime, press Check.

1

Nothing sieved yet. The smallest number on the board, 2, is prime.

History

Eratosthenes of Cyrene lived from 276 to 194 BCE, by the dates in Burton and Rosen.⁠[10][11] He became chief librarian at Alexandria, and he is best known for his measurement of the size of the Earth,⁠[12][13] told in the lesson “Eratosthenes measures the Earth”.

Nicomachus, in Book I of his Introduction to Arithmetic,⁠[14] describes “Eratosthenes’s sieve”, a device for finding prime numbers, in chapter 13.⁠[15] He sets out only the odd numbers, starting from 3,⁠[16] because he did not regard 2 as a prime⁠[17] (lesson “Why 1 is not prime”).

Historical note.

The sieve has a long life. Kamal al-Din al-Farisi (died about 1320)⁠[18][19] used it, among other tools, to show that 1,151 is prime,⁠[20] and modified forms of it are still important tools in research on prime numbers.⁠[21]

Looking ahead.

The sieve lists primes as far as one cares to go, but it cannot say whether the list ever ends. That there are infinitely many primes was proved by Euclid in the Elements;⁠[22] the proof is in the unit Divisibility Theory, lesson “There are infinitely many primes”. The next lesson, “Prime factorization”, uses the primes to build every other number.

Exercises

Exercise .

Run the sieve up to 40. Which primes does it use, and which primes does it find?

▸ Show solution

The primes p with p × p ≤ 40 are 2, 3 and 5 (7 × 7 = 49). 2 crosses out 4, 6, …, 40; 3 crosses out, new, 9, 15, 21, 27, 33, 39; 5 crosses out, new, 25 and 35.

Left: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37: twelve primes.

Exercise .

Which primes must the sieve use to find every prime up to 200? Which number would be wrongly kept without the last one?

▸ Show solution

All primes p with p × p ≤ 200: 2, 3, 5, 7, 11 and 13, since 13 × 13 = 169 ≤ 200 and the next prime, 17, has 17 × 17 = 289 > 200. The prime 13 is needed for 169 = 13 × 13, which no smaller prime divides.

Exercise .

Up to 100, which numbers does the sieve cross out first when it circles 7? Why is 63 not one of them?

▸ Show solution

The numbers 7 crosses out first are the multiples of 7 whose smallest prime factor is 7: from 7 × 7 = 49 on, those not divisible by 2, 3 or 5. Up to 100: 49, 77 and 91 (56, 63, 70, 84 and 98 are multiples of 2 or 3 or 5).

63 = 3 × 21: its smallest prime factor is 3, so it was crossed out when 3 was circled.

Exercise .

In the sieve up to 60, how many numbers does 2 cross out? How many does 3 cross out first?

▸ Show solution

2 crosses out the even numbers from 4 to 60: 29 numbers. 3 crosses out first the odd multiples of 3 from 9 to 57: 9, 15, 21, 27, 33, 39, 45, 51, 57, which is 9 numbers.

Exercise .

After sieving with 2 and 3 only, explain why every number left below 25 is prime. Which is the first number left that is not prime?

▸ Show solution

A composite number below 25 has a smallest prime factor s with s × s ≤ the number < 25, so s is 2 or 3 (5 × 5 = 25). After sieving with 2 and 3 every composite number below 25 is crossed out, so every number left below 25 is prime.

The first number left that is not prime is 25 = 5 × 5: it is odd and 3 does not divide it.

Exercise .

Use the test of the lesson “Prime and composite numbers” to show that 1,151, al-Farisi’s number, is prime.

▸ Show solution

The primes p with p × p ≤ 1,151 are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29 and 31 (31 × 31 = 961, 37 × 37 = 1,369). 1,151 is odd, its digit sum is 8, it ends in 1. Then 1,151 = 164 × 7 + 3 = 104 × 11 + 7 = 88 × 13 + 7 = 67 × 17 + 12 = 60 × 19 + 11 = 50 × 23 + 1 = 39 × 29 + 20 = 37 × 31 + 4.

No remainder is 0, so 1,151 is prime.

Summary

  1. The sieve of Eratosthenes lists 2 to N, circles the smallest number left, crosses out its multiples, and repeats; the numbers left are the primes up to N.
  2. It never crosses out a prime (a number k × p with k ≥ 2 is composite) and it crosses out every composite number, first when its smallest prime factor is circled.
  3. It may stop as soon as the next number left, q, has q × q > N, and the crossing for p may start at p × p.
  4. Up to 100 the primes 2, 3, 5 and 7 suffice and leave 25 primes; up to 150 the prime 11 is needed too.
  5. Nicomachus’s Introduction to Arithmetic describes it as Eratosthenes’s sieve; Eratosthenes lived 276–194 BCE, by the dates in Burton and Rosen.

Sources

  1. 1.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 4, “The Alexandrian School: Euclid”, section 4.4, “Eratosthenes, the Wise Man of Alexandria” (“The Sieve of Eratosthenes”), p. 185 (the whole topic: pp. 183–186).
    “Eratosthenes used this fact as the basis of a clever technique, called the sieve of Eratosthenes, for finding all primes less than a given integer n.”
    Used for: the sieve of Eratosthenes, named after him, finds all the primes up to a given number.
  2. 2.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.3, “Primes and Greatest Common Divisors” (4.3.4, “The Sieve of Eratosthenes”), p. 273 (the whole topic: pp. 273–274).
    “The sieve of Eratosthenes is used to find all primes not exceeding a specified positive integer.”
    Used for: the sieve finds all the primes up to a given number.
  3. 3.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 4, “The Alexandrian School: Euclid”, section 4.4, “Eratosthenes, the Wise Man of Alexandria” (“The Sieve of Eratosthenes”), p. 185 (the whole topic: pp. 183–186).
    “The scheme calls for writing down the integers from 2 to n in their natural order and then systematically eliminating all the composite numbers by striking out all multiples”
    Used for: the scheme: write the numbers from 2 to N and strike out the composite numbers by striking out the multiples of the primes.
  4. 4.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.3, “Primes and Greatest Common Divisors” (4.3.4, “The Sieve of Eratosthenes”), p. 273 (the whole topic: pp. 273–274).
    “To begin the sieving process, the integers that are divisible by 2, other than 2, are deleted. Because 3 is the first integer greater than 2 that is left, all those integers divisible by 3, other than 3, are deleted.”
    Used for: first the numbers divisible by 2 other than 2 are removed, then those divisible by 3 other than 3, the first number left after 2, and so on.
  5. 5.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 4, “The Alexandrian School: Euclid”, section 4.4, “Eratosthenes, the Wise Man of Alexandria” (“The Sieve of Eratosthenes”), p. 186 (the whole topic: pp. 183–186).
    “The integers that are left on the list—that do not fall through the “sieve”—are primes.”
    Used for: the numbers that do not fall through the sieve are the primes.
  6. 6.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.3, “Primes and Greatest Common Divisors” (4.3.4, “The Sieve of Eratosthenes”), p. 273 (the whole topic: pp. 273–274).
    “Note that composite integers not exceeding 100 must have a prime factor not exceeding 10.”
    Used for: a composite number up to 100 has a prime factor up to 10.
  7. 7.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.3, “Primes and Greatest Common Divisors” (4.3.4, “The Sieve of Eratosthenes”), p. 274 (the whole topic: pp. 273–274).
    “Because all composite integers not exceeding 100 are divisible by 2, 3, 5, or 7, all remaining integers except 1 are prime.”
    Used for: sieving with 2, 3, 5 and 7 removes every composite number up to 100.
  8. 8.
    David M. Burton, Elementary Number Theory (7th ed., McGraw-Hill, 2011).
    Chapter 3, “Primes and Their Distribution”, section 3.2, “The Sieve of Eratosthenes”, p. 45 (the whole topic: pp. 44–46).
    “We keep 3, but strike out all higher multiples of 3, so that 9, 15, 21, ... are now removed (the even multiples of 3 having been removed in the previous step).”
    Used for: when the sieve reaches 3, the even multiples of 3 are already gone, and the first new one is 9.
  9. 9.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.3, “Primes and Greatest Common Divisors” (4.3.4, “The Sieve of Eratosthenes”), p. 274 (the whole topic: pp. 273–274).
    “We conclude that the primes less than 100 are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, and 97.”
    Used for: the 25 primes less than 100 (the lesson’s count of the sieve gives the same list).
  10. 10.
    David M. Burton, The History of Mathematics: An Introduction (7th ed., McGraw-Hill, 2011).
    Chapter 4, “The Alexandrian School: Euclid”, section 4.4, “Eratosthenes, the Wise Man of Alexandria” (“The Sieve of Eratosthenes”), p. 183 (the whole topic: pp. 183–186).
    “Another Alexandrian mathematician whose work in number theory remains significant is Eratosthenes (276–194 B.C.).”
    Used for: Burton’s dates for Eratosthenes: 276–194 BCE.
  11. 11.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.3, “Primes and Greatest Common Divisors” (4.3.4, “The Sieve of Eratosthenes”), biographical note “Eratosthenes”, p. 273 (the whole topic: pp. 273–274).
    “ERATOSTHENES (276 B.C.E.–194 B.C.E.)”
    Used for: Rosen’s dates for Eratosthenes: 276–194 BCE (a second source).
  12. 12.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.3, “Primes and Greatest Common Divisors” (4.3.4, “The Sieve of Eratosthenes”), biographical note “Eratosthenes”, p. 273 (the whole topic: pp. 273–274).
    “later Eratosthenes became chief librarian at the famous library at Alexandria, a central repository of ancient wisdom.”
    Used for: Eratosthenes became chief librarian at Alexandria.
  13. 13.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.3, “Primes and Greatest Common Divisors” (4.3.4, “The Sieve of Eratosthenes”), biographical note “Eratosthenes”, p. 273 (the whole topic: pp. 273–274).
    “he is most noted for his chronology of ancient history and for his famous measurement of the size of the earth.”
    Used for: Eratosthenes is best known for his measurement of the size of the Earth.
  14. 14.
    Thomas L. Heath, A History of Greek Mathematics, Vol. I: From Thales to Euclid (Clarendon Press, Oxford, 1921).
    Chapter III, “Pythagorean Arithmetic”, section “Nicomachus”, p. 99 (the whole topic: pp. 97–100).
    “Book I of the Introductio, after a philosophical prelude (cc. 1-6), consists principally of definitions and laws of formation.”
    Used for: Nicomachus’s Introduction to Arithmetic (Introductio), Book I.
  15. 15.
    Thomas L. Heath, A History of Greek Mathematics, Vol. I: From Thales to Euclid (Clarendon Press, Oxford, 1921).
    Chapter III, “Pythagorean Arithmetic”, section “Nicomachus”, p. 100 (the whole topic: pp. 97–100).
    “In c. 13 we have these different classes of odd numbers exhibited in a description of Eratosthenes’s ‘sieve’ (κόσκινον), an appropriately named device for finding prime numbers.”
    Used for: Book I, chapter 13, of Nicomachus’s Introduction describes Eratosthenes’s sieve, a device for finding prime numbers.
  16. 16.
    Thomas L. Heath, A History of Greek Mathematics, Vol. I: From Thales to Euclid (Clarendon Press, Oxford, 1921).
    Chapter III, “Pythagorean Arithmetic”, section “Nicomachus”, p. 100 (the whole topic: pp. 97–100).
    “The method is this. We set out the series of odd numbers beginning from 3.”
    Used for: in Nicomachus’s description the sieve sets out the odd numbers, starting from 3.
  17. 17.
    Thomas L. Heath, A History of Greek Mathematics, Vol. I: From Thales to Euclid (Clarendon Press, Oxford, 1921).
    Chapter III, “Pythagorean Arithmetic”, section “Nicomachus”, p. 100 (the whole topic: pp. 97–100).
    “a product of prime factors (excluding 2, which is even and not regarded as prime)”
    Used for: Nicomachus did not regard 2 as a prime.
  18. 18.
    Chris K. Caldwell and Yeng Xiong, “What is the smallest prime?”, Journal of Integer Sequences 15 (2012), Article 12.9.7.
    “The first known proof of existence is due to al-Farisi (died c. 1320)”
    Used for: al-Farisi died about 1320.
  19. 19.
    J. J. O’Connor and E. F. Robertson, “Kamal al-Din Abu’l Hasan Muhammad Al-Farisi”, MacTutor History of Mathematics Archive, University of St Andrews.
    “about 1320”
    Used for: al-Farisi died about 1320 (a second source for the date).
  20. 20.
    J. J. O’Connor and E. F. Robertson, “Kamal al-Din Abu’l Hasan Muhammad Al-Farisi”, MacTutor History of Mathematics Archive, University of St Andrews.
    “to show that 1151 is prime al-Farisi uses a number of lemmas including an application of the sieve of Eratosthenes.”
    Used for: al-Farisi used the sieve, among other tools, to show that 1,151 is prime.
  21. 21.
    J. J. O’Connor and E. F. Robertson, “Eratosthenes of Cyrene”, MacTutor History of Mathematics Archive, University of St Andrews.
    “He is remembered for his prime number sieve, the 'Sieve of Eratosthenes' which, in modified form, is still an important tool in number theory research.”
    Used for: modified forms of the sieve are still important tools in research on prime numbers.
  22. 22.
    Kenneth H. Rosen, Discrete Mathematics and Its Applications (8th ed., McGraw-Hill, 2019).
    Chapter 4, “Number Theory and Cryptography”, section 4.3, “Primes and Greatest Common Divisors” (4.3.4, “The Sieve of Eratosthenes”: “The Infinitude of Primes”), p. 274 (the whole topic: pp. 274–275).
    “We will prove this fact using a proof given by Euclid in his famous mathematics text, The Elements.”
    Used for: Euclid proved in the Elements that there are infinitely many primes.