1. Home
  2. Explore
  3. Mathematics
  4. Prime Numbers and Euclid’s Proof

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Prime Numbers and Euclid’s Proof

  • 68Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Prime Foundations

How large was the prime described at the beginning, and how can it be written?

68 questions

  1. 1

    How large was the prime described at the beginning, and how can it be written?

    Model answer

    It has 687 digits and can be written as 22281−12^{2281}-122281−1.

    Explanation

    The content identifies the opening prime by both its digit count and its Mersenne-number form.

  2. 2

    As of 2024, how large was the largest known prime, when was it discovered, and what was its form?

    Model answer

    It had almost 25 million digits, was discovered in 2018, and was 282,589,933−12^{82,589,933}-1282,589,933−1.

    Explanation

    The record prime is presented as an example of an enormous prime with a compact exponential expression.

  3. 3

    What did Euclid prove about prime numbers, and what mathematical fact supports his proof?

    Model answer

    Euclid proved that there are infinitely many primes. His proof uses the fact that every composite number has a unique prime factorization.

    Explanation

    Unique prime factorization lets the proof reason about the prime factors of a constructed number.

  4. 4

    Describe Euclid’s construction for showing that a proposed complete list of primes cannot be complete.

    Model answer

    Multiply all primes in the proposed list and add 111 to form QQQ. No listed prime divides QQQ, so QQQ has a prime factor outside the list.

    Explanation

    Dividing the product plus 111 by any listed prime leaves remainder 111.

  5. 5

    Why does Euclid’s argument work whether the constructed number QQQ is prime or composite?

    Model answer

    If QQQ is prime, it is a prime missing from the list. If QQQ is composite, at least one of its prime factors is missing from the list because none of the listed primes divides QQQ.

    Explanation

    Both possible classifications of QQQ contradict the assumption that the list contains every prime.

  6. 6

    Why is checking every smaller number as a possible divisor an inefficient way to test primality?

    Model answer

    The number of trial divisions grows with the number being tested; checking a number such as 1,000,0011,000,0011,000,001 against nearly every smaller number requires many unnecessary tests.

    Explanation

    More efficient approaches use properties of divisor pairs and prime factorization to reduce the search.

  7. 7

    How do divisor pairs reduce the range that must be searched when checking a number for factors?

    Model answer

    If a number has a divisor greater than its square root, it has a paired divisor smaller than its square root. Therefore, it is enough to search up to the square root.

    Explanation

    Factors occur in pairs whose product is the number, so both members of a pair cannot exceed the square root.

  8. 8

    Why can a divisor search be limited to prime numbers up to the square root?

    Model answer

    Every composite divisor has prime factors, so any composite number has a prime divisor. It is therefore sufficient to test prime divisors up to the square root.

    Explanation

    Prime factorization means composite candidates do not need to be tested separately.

  9. 9

    How does the Sieve of Eratosthenes identify primes?

    Model answer

    Starting with 222, it marks each unmarked number as prime and crosses out its multiples as composite; it repeats this with the next unmarked number.

    Explanation

    The procedure continues until the numbers in the chosen range have been classified.

  10. 10

    What is an advantage and a limitation of the Sieve of Eratosthenes?

    Model answer

    It is much faster than testing each number individually, but it has limitations when searching for extremely large primes.

    Explanation

    The sieve is designed to find primes from the beginning of a range rather than efficiently test a huge individual candidate.

  11. 11

    What are the main steps of the Sieve of Atkin as described in the content?

    Model answer

    It starts with 222, 333, and 555, uses three quadratic expressions evaluated modulo 606060 for chosen values of xxx and yyy, and then removes multiples of the squares of listed primes beginning with 777.

    Explanation

    The residue-based marking stage is followed by a square-multiple elimination stage.

  12. 12

    Which three expressions does the Sieve of Atkin use, and how are xxx and yyy used?

    Model answer

    It uses 4x2+y24x^2+y^24x2+y2, 3x2+y23x^2+y^23x2+y2, and 3x2−y23x^2-y^23x2−y2, evaluating them modulo 606060 for pairs of positive values of xxx and yyy up to a chosen limit.

    Explanation

    The resulting values are used in the sieve’s residue-based process for identifying prime candidates.

  13. 13

    What does the final square-removal stage of the Sieve of Atkin do?

    Model answer

    For each listed number after 222, 333, and 555, it removes multiples of that number’s square, beginning with 777.

    Explanation

    This step removes composite candidates that are multiples of a prime square.

  14. 14

    What scale of prime search can the Sieve of Atkin handle quickly on modern computers, and what remains beyond its intended use?

    Model answer

    It can identify primes up to 111 billion in less than a second, but finding primes with thousands of digits or more requires more advanced methods.

    Explanation

    The content distinguishes large-range sieving from methods for extremely large individual primes.

  15. 15

    State Fermat’s Little Theorem in congruence form.

    Model answer

    If ppp is prime, then for an integer aaa less than ppp, ap≡a(modp)a^p \equiv a \pmod pap≡a(modp).

    Explanation

    Equivalently, ppp divides ap−aa^p-aap−a.

  16. 16

    How might Fermat’s Little Theorem be used as a primality test?

    Model answer

    Choose a value of aaa, calculate ap−aa^p-aap−a, and check whether it is divisible by the candidate ppp. Failure of the condition shows that the candidate is composite, but passing does not prove primality.

    Explanation

    The theorem gives a necessary condition for primality, not a sufficient one.

  17. 17

    Why does the Fermat test with a=2a=2a=2 fail to establish that 341341341 is prime?

    Model answer

    Although 2341−22^{341}-22341−2 is divisible by 341341341, 341341341 is composite. Testing with a=3a=3a=3 exposes that it fails the condition.

    Explanation

    A composite number can pass a Fermat test for one chosen base.

  18. 18

    What are Carmichael numbers, and why do they matter for Fermat-based primality testing?

    Model answer

    Carmichael numbers are composite numbers that pass Fermat’s test for every permitted base aaa. They show that repeated Fermat tests cannot guarantee primality.

    Explanation

    Their existence means the test can identify only probable primes rather than provide absolute certainty.

  19. 19

    How common were Carmichael numbers up to one million according to the content?

    Model answer

    There were 434343 Carmichael numbers up to one million.

    Explanation

    They are relatively few in that range, but even a small number of exceptions prevents Fermat’s test from being conclusive.

  20. 20

    How does the Miller–Rabin test begin decomposing an odd candidate number nnn?

    Model answer

    It writes nnn as 2xy+12^x y+12xy+1, where yyy is odd, and then chooses a base aaa smaller than nnn.

    Explanation

    For example, 221=22⋅55+1221=2^2\cdot55+1221=22⋅55+1.

  21. 21

    In the Miller–Rabin test, what is done with the initial modular power, and what happens if it is neither 111 nor −1-1−1?

    Model answer

    Compute aya^yay modulo nnn. If the result is neither 111 nor −1-1−1, repeatedly square it modulo nnn, checking whether a result becomes −1-1−1.

    Explanation

    The repeated squaring stage uses the factorization n−1=2xy+1n-1=2^x y+1n−1=2xy+1.

  22. 22

    How does the Miller–Rabin example show that 221221221 is composite?

    Model answer

    For n=221n=221n=221, the decomposition is 221=22⋅55+1221=2^2\cdot55+1221=22⋅55+1. With a=13a=13a=13, the successive remainders are 208208208, then 169169169, then 525252; none is −1-1−1 at the required stage, so the test establishes that 221221221 is composite.

    Explanation

    A base that fails the Miller–Rabin conditions is a witness to compositeness.

  23. 23

    What is the difference between a Miller–Rabin witness and a liar?

    Model answer

    A witness correctly indicates that a candidate is prime in the test described, whereas a liar is a base that makes a composite candidate pass as if it were prime.

    Explanation

    The example identifies 888 and 111111 as witnesses for the prime 373737, and 131313 as a liar for the composite 858585.

  24. 24

    How does repeating Miller–Rabin tests affect confidence in a probable prime?

    Model answer

    Testing with different randomly chosen bases reduces the chance that a composite candidate will pass every test; the content states that five tests give at least 99.9%99.9\%99.9% confidence.

    Explanation

    The stated reasoning is that a composite has, on average, about 25%25\%25% liars among possible bases.

  25. 25

    Why is Miller–Rabin stronger than Fermat’s Little Theorem as a practical test?

    Model answer

    Every composite number has at least one base that reveals its compositeness in Miller–Rabin, whereas Carmichael numbers can pass Fermat’s test for every base.

    Explanation

    Miller–Rabin can still give a probable-prime result when tested bases do not expose compositeness.

  26. 26

    What distinguishes the AKS primality test from the faster tests described?

    Model answer

    The Agrawal–Kayal–Saxena test can determine primality conclusively, whereas Fermat and Miller–Rabin tests can return probable-prime results without absolute certainty.

    Explanation

    AKS is presented as an exact primality test, though it can be slow for very large inputs.

  27. 27

    What special polynomial property of primes underlies the AKS test?

    Model answer

    For a prime ppp, the coefficients in (x+1)p−xp−1(x+1)^p-x^p-1(x+1)p−xp−1 are divisible by ppp.

    Explanation

    The AKS test relies on this property to determine primality conclusively.

  28. 28

    Why is AKS not practical for some very large numbers despite being a conclusive test?

    Model answer

    Its runtime can be extremely long; the content estimates that testing a 1,0001,0001,000-digit number could take years on a modern computer.

    Explanation

    The test is described as the fastest known conclusive method, but that speed is relative to the scale of the input.

  29. 29

    What is a Mersenne number, and what additional condition makes it a Mersenne prime?

    Model answer

    A Mersenne number has the form 2n−12^n-12n−1. It is a Mersenne prime if that number is prime.

    Explanation

    The record primes discussed in the content have this form.

  30. 30

    Why are powers of 222 minus 111 useful in searches for very large primes?

    Model answer

    Numbers of this form have a specialized primality test, the Lucas–Lehmer test, making them especially suitable for searching for large primes.

    Explanation

    The content says the six largest known primes are Mersenne primes and highlights the efficient test for this form.

  31. 31

    What are the first three Mersenne primes listed in the content?

    Model answer

    They are 333, 777, and 313131.

    Explanation

    They are obtained from powers of 222 minus 111 that happen to be prime.

  32. 32

    If nnn is composite, why must 2n−12^n-12n−1 also be composite?

    Model answer

    Write n=xyn=xyn=xy with xxx and yyy greater than 111. Then 2xy−12^{xy}-12xy−1 is divisible by 2x−12^x-12x−1, so it has a nontrivial factor.

    Explanation

    The identity 2xy−1=(2x−1)(1+2x+22x+⋯+2(y−1)x)2^{xy}-1=(2^x-1)(1+2^x+2^{2x}+\cdots+2^{(y-1)x})2xy−1=(2x−1)(1+2x+22x+⋯+2(y−1)x) gives the factorization.

  33. 33

    Does a prime exponent nnn guarantee that 2n−12^n-12n−1 is prime? Explain with the given counterexample.

    Model answer

    No. When n=11n=11n=11, which is prime, 211−1=20472^{11}-1=2047211−1=2047 is composite.

    Explanation

    The factorization result provides a necessary condition on the exponent, not a guarantee of primality.

  34. 34

    What is a perfect number?

    Model answer

    A perfect number is an integer equal to the sum of its positive divisors excluding itself. Equivalently, the sum of all its positive divisors is twice the number.

    Explanation

    The two definitions differ only in whether the number itself is included in the divisor sum.

  35. 35

    Why is 666 the smallest perfect number, and what other early examples are given?

    Model answer

    The proper divisors of 666, namely 111, 222, and 333, sum to 666. The next examples given are 282828 and 496496496.

    Explanation

    Including 666 itself makes the sum of all its divisors 121212, twice 666.

  36. 36

    How does a Mersenne prime produce a perfect number?

    Model answer

    If 2n−12^n-12n−1 is prime, then 2n−1(2n−1)2^{n-1}(2^n-1)2n−1(2n−1) is a perfect number.

    Explanation

    For the first Mersenne prime, 3=22−13=2^2-13=22−1, the construction gives 22−1⋅3=62^{2-1}\cdot3=622−1⋅3=6.

  37. 37

    How do the divisors of 282828 illustrate its connection to a Mersenne prime?

    Model answer

    Its divisors are 111, 222, 444, 777, 141414, and 282828. The first three are powers of 222, and the last three are those same powers multiplied by 777, the corresponding Mersenne prime.

    Explanation

    This grouping shows how the factors associated with the Mersenne prime contribute to the perfect-number divisor sum.

  38. 38

    How does the geometric sum of powers of 222 help explain the perfect-number formula?

    Model answer

    The sum 1+2+⋯+2n−11+2+\cdots+2^{n-1}1+2+⋯+2n−1 equals 2n−12^n-12n−1. Grouping the divisors into these powers and the same powers multiplied by 2n−12^n-12n−1 gives a total divisor sum twice 2n−1(2n−1)2^{n-1}(2^n-1)2n−1(2n−1).

    Explanation

    The geometric sum is the key calculation showing that the constructed number satisfies the definition of a perfect number.

  39. 39

    What recurrence defines the sequence used by the Lucas–Lehmer test?

    Model answer

    It begins with S1=4S_1=4S1​=4, and each next term is the previous term squared minus 222: Sk+1=Sk2−2S_{k+1}=S_k^2-2Sk+1​=Sk2​−2.

    Explanation

    The first terms are 444, 141414, and 194194194.

  40. 40

    What does the Lucas–Lehmer test check for a candidate 2p−12^p-12p−1?

    Model answer

    It checks whether the (p−1)(p-1)(p−1)st sequence term is divisible by 2p−12^p-12p−1; if the remainder is 000, the candidate is prime.

    Explanation

    The test uses the sequence beginning at 444 and repeatedly squaring and subtracting 222.

  41. 41

    How does the Lucas–Lehmer test verify that 777 is prime?

    Model answer

    Since 7=23−17=2^3-17=23−1, use the second sequence term, 141414. Because 777 divides 141414, the test identifies 777 as prime.

    Explanation

    For exponent p=3p=3p=3, the required term is the (p−1)(p-1)(p−1)st term, or the second term.

  42. 42

    How can modular remainders prevent Lucas–Lehmer sequence values from becoming too large?

    Model answer

    After each recurrence step, reduce the term modulo the candidate being tested before calculating the next term.

    Explanation

    Reducing modulo the candidate preserves the divisibility result while keeping intermediate values bounded.

  43. 43

    How does the content use the Lucas–Lehmer test to check 819181918191?

    Model answer

    Because 8191=213−18191=2^{13}-18191=213−1, it calculates the twelfth sequence term using modular reductions. That term is congruent to 000 modulo 819181918191, so the test concludes that 819181918191 is prime.

    Explanation

    The exponent 131313 requires the (13−1)(13-1)(13−1)st term.

  44. 44

    What does group theory study, and what is a binary operation?

    Model answer

    Group theory studies groups: sets equipped with an operation. A binary operation combines two elements at a time.

    Explanation

    Addition and multiplication are examples of operations that can be used to define groups.

  45. 45

    State the four requirements for a set and operation to form a group.

    Model answer

    The operation must satisfy closure and associativity, there must be an identity element, and every element must have an inverse.

    Explanation

    These properties define a group in the content’s treatment.

  46. 46

    How do integers with addition satisfy closure, associativity, identity, and inverses?

    Model answer

    Integer sums are integers, addition is associative, 000 is the identity, and each integer has its negative as an additive inverse.

    Explanation

    Together, these facts show that the integers under addition form a group.

  47. 47

    How is addition modulo 101010 defined, and why does it give a closed operation on the set from 000 to 999?

    Model answer

    Add the numbers and take the remainder modulo 101010. The result is always one of 000 through 999, so it stays in the set.

    Explanation

    For instance, 5+6=115+6=115+6=11, which is 111 modulo 101010.

  48. 48

    What is the order of a group, and what is the order of the group of integers modulo 101010?

    Model answer

    The order of a group is its number of elements. The group of integers modulo 101010 has order 101010.

    Explanation

    Its elements are 0,1,2,…,90,1,2,\ldots,90,1,2,…,9.

  49. 49

    What is the order of an element in a group?

    Model answer

    It is the smallest positive number of times the group operation must be applied to that element with itself to obtain the identity.

    Explanation

    The repeated operation is not exponentiation unless the group operation itself is written multiplicatively.

  50. 50

    Find the order of 444 under addition modulo 101010 and explain the repeated-operation sequence.

    Model answer

    Its order is 555: the successive results are 444, 888, 222, 666, and 000 modulo 101010.

    Explanation

    The first time repeated addition of 444 reaches the identity 000 is after five additions.

  51. 51

    If repeating an operation on an element sss times gives the identity, what can be concluded about sss and the element’s order?

    Model answer

    The element’s order divides sss, so sss is a multiple of the order.

    Explanation

    For example, both 555 and 101010 additions of 444 give 000 modulo 101010, and both are multiples of its order, 555.

  52. 52

    What is the order of 333 under addition modulo 101010, and what does this example show?

    Model answer

    Its order is 101010. Repeated addition of 333 cycles through all ten elements before returning to 000.

    Explanation

    The example shows that an element’s order can equal the order of its group.

  53. 53

    Why can the order of an element in a finite group not exceed the order of the group?

    Model answer

    Repeated operation on an element reaches the identity after cycling through elements of the group, so the number of steps cannot exceed the group’s total number of elements.

    Explanation

    The order of an element is therefore bounded by the size of the group.

  54. 54

    How are the sequence terms represented using x=2+3x=2+\sqrt{3}x=2+3​ and y=2−3y=2-\sqrt{3}y=2−3​?

    Model answer

    The nnnth term is Sn=x2n−1+y2n−1S_n=x^{2^{n-1}}+y^{2^{n-1}}Sn​=x2n−1+y2n−1, and xy=1xy=1xy=1.

    Explanation

    For n=1n=1n=1, this gives x+y=4x+y=4x+y=4, the sequence’s first term.

  55. 55

    Why does the representation Sn=x2n−1+y2n−1S_n=x^{2^{n-1}}+y^{2^{n-1}}Sn​=x2n−1+y2n−1 obey the Lucas–Lehmer recurrence?

    Model answer

    Squaring the expression and subtracting 222 cancels the middle term because xy=1xy=1xy=1, leaving x2n+y2nx^{2^n}+y^{2^n}x2n+y2n, which is the representation for Sn+1S_{n+1}Sn+1​.

    Explanation

    This algebra verifies that the representation follows the recurrence Sn+1=Sn2−2S_{n+1}=S_n^2-2Sn+1​=Sn2​−2.

  56. 56

    What contradiction strategy does the content use to explain why a zero Lucas–Lehmer remainder implies primality?

    Model answer

    Assume the candidate Mp=2p−1M_p=2^p-1Mp​=2p−1 is composite and let qqq be its smallest factor. The argument uses the assumed divisibility of the relevant sequence term to derive an element order that is too large for the constructed group.

    Explanation

    The contradiction is intended to show that the composite assumption cannot hold.

  57. 57

    If qqq is the smallest factor of a composite Mersenne number Mp=2p−1M_p=2^p-1Mp​=2p−1, what basic bounds on qqq are stated?

    Model answer

    Since MpM_pMp​ is odd, q>2q>2q>2. Also, q2≤Mpq^2\leq M_pq2≤Mp​, because a factor larger than the square root would have a paired factor smaller than it.

    Explanation

    The factor-pair property bounds the smallest factor by the square root of the composite number.

  58. 58

    How is the set XXX in the Lucas–Lehmer proof constructed, and how many elements does it have?

    Model answer

    It consists of numbers a+b3a+b\sqrt{3}a+b3​ with aaa and bbb taken modulo qqq. There are q2q^2q2 possible pairs, so the set has q2q^2q2 elements.

    Explanation

    The construction combines two independently chosen coefficients from a set of qqq residues.

  59. 59

    Why is multiplication described as closed in the constructed set XXX?

    Model answer

    Multiplying two elements of the form a+b3a+b\sqrt{3}a+b3​ gives another expression of that form, and reducing its coefficients modulo qqq keeps them in the set of residues.

    Explanation

    The content defines the multiplication so the product remains within XXX.

  60. 60

    What is the purpose of defining X∗X^*X∗ from XXX in the Lucas–Lehmer argument?

    Model answer

    X∗X^*X∗ is the group of elements of XXX that have multiplicative inverses. Its identity is 111, and the content gives its order as q2−1q^2-1q2−1.

    Explanation

    The argument compares the order of a particular element with the size of this multiplicative group.

  61. 61

    What order properties of the element xxx does the Lucas–Lehmer proof derive?

    Model answer

    It derives that x2p=1x^{2^p}=1x2p=1 while x2p−1≠1x^{2^{p-1}}\ne1x2p−1=1, so the order of xxx divides 2p2^p2p but does not divide 2p−12^{p-1}2p−1. The argument concludes that its order is 2p2^p2p.

    Explanation

    Because divisors of a power of 222 are themselves powers of 222, these conditions force the stated order.

  62. 62

    How does the Lucas–Lehmer proof obtain a contradiction from the order of xxx?

    Model answer

    The order of an element cannot exceed the group order, so it must be at most q2−1q^2-1q2−1. But the derived order is 2p2^p2p, while q2≤Mp=2p−1q^2\leq M_p=2^p-1q2≤Mp​=2p−1, making q2−1<2pq^2-1<2^pq2−1<2p.

    Explanation

    The derived lower requirement on the order exceeds the group’s maximum possible order.

  63. 63

    What conclusion follows from the contradiction in the Lucas–Lehmer proof?

    Model answer

    The assumption that MpM_pMp​ is composite must be false, so MpM_pMp​ is prime.

    Explanation

    The contradiction arises from assuming a composite candidate has a smallest factor qqq.

  64. 64

    What is GIMPS, and how does it search for Mersenne primes?

    Model answer

    The Great Internet Mersenne Prime Search is a volunteer project that uses free software and computing resources to test Mersenne-number candidates for primality.

    Explanation

    Its search distributes computations across computers around the world.

  65. 65

    When was GIMPS founded, and who founded it?

    Model answer

    George Woltman founded GIMPS in 1996.

    Explanation

    The project has operated as a collaborative search since its founding.

  66. 66

    How many times had GIMPS discovered a new largest known prime since its beginning, according to the content?

    Model answer

    It had discovered a new largest known prime 151515 times.

    Explanation

    The content describes this as a result of the project’s ongoing collaborative search.

  67. 67

    Who found the 2018 record prime, when was it found, and what kind of computer was used?

    Model answer

    Patrick Laroche found it on December 7, 2018, using an ordinary home computer with an Intel processor from 2014.

    Explanation

    The discovery illustrates how a large prime search can use ordinary hardware as part of a broader effort.

  68. 68

    How does the computing effort required to test one enormous Mersenne number compare with GIMPS’s combined daily capacity?

    Model answer

    Testing a Mersenne number with millions of digits can take a modern computer a week to a month or longer, while GIMPS’s volunteer computers can test almost a thousand candidates per day.

    Explanation

    The distributed computing power of many volunteers enables a much larger combined search.

1 of 68
Question 1 of 68

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent