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

  • 87Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Prime Foundations
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

How many digits did the example prime number have, and how many digits did the largest known prime have as of 2024?

Tap to flipClick to flipspace

The example had 687 digits. The largest known prime had almost 25 million digits.

Or swipe the card

87 cards

  1. How many digits did the example prime number have, and how many digits did the largest known prime have as of 2024?

    The example had 687 digits. The largest known prime had almost 25 million digits.

  2. How can the largest known prime described in the content be written?

    282,589,933−12^{82{,}589{,}933}-1282,589,933−1. It was discovered in 2018.

  3. What is the unique factorization property of composite numbers?

    Every composite number can be represented uniquely as a product of prime numbers, apart from the order of the factors. For example, 260=22×5×13260=2^2\times5\times13260=22×5×13.

  4. What did Euclid prove about prime numbers?

    Euclid proved that there are infinitely many prime numbers.

  5. In Euclid's proof, how is a number QQQ constructed from an assumed complete list of primes PPP?

    Multiply all the primes in PPP together and add 111: Q=(∏p∈Pp)+1Q=(\prod_{p\in P}p)+1Q=(∏p∈P​p)+1.

  6. Why does Euclid's constructed number QQQ lead to a contradiction if it is prime?

    If QQQ is prime, it is a prime not included in the supposedly complete list PPP.

  7. Why does Euclid's constructed number QQQ lead to a contradiction if it is composite?

    Any prime factor of QQQ cannot be in PPP, because dividing QQQ by any prime in PPP leaves remainder 111. Thus a prime outside the supposedly complete list exists.

  8. Why can trial division stop after testing divisors up to n\sqrt{n}n​?

    Divisors come in pairs. If nnn has a divisor larger than n\sqrt{n}n​, its paired divisor must be smaller than n\sqrt{n}n​, so a factor would already have been found.

  9. Why is it sufficient to test only prime divisors up to n\sqrt{n}n​ when checking whether nnn is prime?

    Every composite number has a prime factor, and every composite number has a factor at most n\sqrt{n}n​. Therefore, testing prime divisors up to that limit is sufficient.

  10. What is the basic process of the Sieve of Eratosthenes?

    Start with 222, mark it prime, and mark off its multiples as composite. Then move to the next unmarked number, mark it prime, and mark off its multiples; repeat.

  11. Why does the Sieve of Eratosthenes mark off multiples of each newly identified prime?

    Every multiple of a prime greater than the prime itself is composite, so marking those multiples eliminates them as prime candidates.

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

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

  13. What numbers does the Sieve of Atkin place in its initial prime list?

    It begins with 222, 333, and 555.

  14. Which three expressions does the Sieve of Atkin use to generate prime candidates?

    4x2+y24x^2+y^24x2+y2, 3x2+y23x^2+y^23x2+y2, and 3x2−y23x^2-y^23x2−y2.

  15. How does the Sieve of Atkin use the three expressions involving xxx and yyy?

    It evaluates the expressions for values of xxx and yyy up to a chosen limit, considers their values modulo 606060, and toggles candidate numbers according to the expression-specific residue rules.

  16. What does the Sieve of Atkin do after generating its candidate list?

    Starting with the first candidate after 222, 333, and 555—namely 777—it removes multiples of that candidate's square, then repeats with later candidates.

  17. How quickly can the Sieve of Atkin identify primes up to 111 billion on modern computers, according to the content?

    In less than a second.

  18. Why are sieve algorithms not ideal when the goal is to test one particular large number for primality?

    Sieves find primes starting from the beginning of the number line; testing a specific number by sieving can require considering a very large range of numbers.

  19. What does Fermat's Little Theorem state for a prime ppp and an integer aaa?

    For prime ppp, ap≡a(modp)a^p\equiv a\pmod pap≡a(modp). Equivalently, ppp divides ap−aa^p-aap−a.

  20. How can Fermat's Little Theorem be used as a primality test?

    Choose a base aaa and check whether ap≡a(modp)a^p\equiv a\pmod pap≡a(modp). A failure proves the candidate is composite; passing the test suggests primality but does not prove it.

  21. Why does testing 777 with base 222 satisfy Fermat's Little Theorem?

    27−2=1262^7-2=12627−2=126, which is divisible by 777.

  22. How does 341341341 demonstrate a weakness of a Fermat test using base 222?

    341341341 is composite, yet 2341−22^{341}-22341−2 is divisible by 341341341, so the base-222 test incorrectly makes it appear prime.

  23. What happens when 341341341 is tested with base 333 in the Fermat test?

    It fails the test with base 333, revealing that 341341341 is composite.

  24. What is a Carmichael number?

    A composite number that passes the Fermat primality test for every eligible base aaa, making it appear prime under that test.

  25. Why does the existence of Carmichael numbers prevent Fermat's Little Theorem from proving primality by itself?

    A Carmichael number passes the test for every base, so passing Fermat tests can establish only probable primality, not certainty.

  26. How many Carmichael numbers are there up to 111 million, according to the content?

    There are 434343.

  27. What is the first step of the Miller–Rabin test as described in the content?

    Write the candidate as n=2xy+1n=2^x y+1n=2xy+1, where xxx and yyy are integers.

  28. How is the Miller–Rabin test's initial modular value calculated?

    Choose a base a<na<na<n and calculate ay mod na^y\bmod naymodn.

  29. What does the Miller–Rabin test do if its initial modular value is neither 111 nor −1-1−1?

    It repeatedly squares the value modulo nnn, checking whether a remainder becomes −1-1−1, for up to xxx squarings.

  30. What conclusion does the Miller–Rabin test draw if no checked remainder becomes −1-1−1?

    The candidate is composite; this conclusion is certain for that test.

  31. In the Miller–Rabin example for 221221221, what decomposition and base are used, and what result reveals compositeness?

    221=22×55+1221=2^2\times55+1221=22×55+1 and the base is 131313. The successive remainders are 208208208, 169169169, and 525252; none is −1-1−1, so 221221221 is composite.

  32. In the Miller–Rabin example for 373737, what happens using base 888?

    37=22×9+137=2^2\times9+137=22×9+1. Since 89 mod 37=68^9\bmod37=689mod37=6 and 62 mod 37=36≡−1(mod37)6^2\bmod37=36\equiv-1\pmod{37}62mod37=36≡−1(mod37), the test reports 373737 as probably prime for that base.

  33. What are witness numbers in the Miller–Rabin examples?

    Bases that make the test report a candidate as probably prime. The content identifies 888 and 111111 as witnesses for 373737.

  34. What is a liar in a probabilistic primality test?

    A base that makes a composite number pass the test and appear probably prime. In the example, 131313 is a liar for 858585.

  35. What result does the Miller–Rabin example give for 858585 with base 131313?

    85=22×21+185=2^2\times21+185=22×21+1 and 1321 mod 85=1313^{21}\bmod85=131321mod85=13. Squaring gives −1(mod85)-1\pmod{85}−1(mod85), so this base makes composite 858585 appear probably prime.

  36. How does repeating the Miller–Rabin test with different bases affect confidence?

    Each additional independently chosen base reduces the chance that a composite candidate passes every round. The content says that five randomly chosen bases give at least 99.9%99.9\%99.9% confidence.

  37. What advantage does Miller–Rabin have over Fermat's primality test, according to the content?

    No composite number passes Miller–Rabin for every possible base; for any composite candidate, some base reveals that it is composite.

  38. Which primality test is described as conclusive for any number?

    The Agrawal–Kayal–Saxena (AKS) primality test.

  39. What special property of prime ppp does the AKS test use?

    When (x+1)p−xp−1(x+1)^p-x^p-1(x+1)p−xp−1 is expanded, all its coefficients are divisible by ppp.

  40. What is the practical limitation of the AKS primality test?

    Although it is described as the fastest known conclusive method, it is slow for very large numbers; a 1,0001{,}0001,000-digit candidate could take years to test on a modern computer.

  41. What is a Mersenne number?

    A number of the form 2n−12^n-12n−1. If such a number is prime, it is called a Mersenne prime.

  42. What form does the largest known prime described in the content have?

    It has the Mersenne form 2n−12^n-12n−1.

  43. Why are Mersenne primes especially useful in searching for large primes?

    There is an efficient specialized test, the Lucas–Lehmer test, for determining whether a Mersenne number is prime.

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

    333, 777, and 313131.

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

    Write n=xyn=xyn=xy with x,y>1x,y>1x,y>1. Then 2xy−12^{xy}-12xy−1 is divisible by 2x−12^x-12x−1, since 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).

  46. Does prime nnn guarantee that 2n−12^n-12n−1 is prime?

    No. For example, 111111 is prime, but 211−1=20472^{11}-1=2047211−1=2047 is composite.

  47. What is the Lucas–Lehmer sequence used for testing Mersenne numbers?

    Start with S1=4S_1=4S1​=4 and repeatedly apply Sk+1=Sk2−2S_{k+1}=S_k^2-2Sk+1​=Sk2​−2, giving initial terms 4,14,194,…4,14,194,\ldots4,14,194,….

  48. What is the Lucas–Lehmer test for a Mersenne number 2p−12^p-12p−1 when ppp is prime, using a sequence that starts with S1=4S_1=4S1​=4?

    Compute through Sp−1S_{p-1}Sp−1​. The Mersenne number 2p−12^p-12p−1 is prime exactly when it divides Sp−1S_{p-1}Sp−1​.

  49. How does modular reduction keep Lucas–Lehmer calculations manageable?

    Before computing the next sequence term, reduce the current value modulo the candidate Mersenne number. This keeps intermediate values smaller.

  50. How does the Lucas–Lehmer test handle 23−12^3-123−1?

    The second sequence term is 141414, and 141414 is divisible by 7=23−17=2^3-17=23−1, so the test identifies 777 as prime.

  51. What is a perfect number?

    An integer equal to the sum of its positive divisors excluding itself. Equivalently, the sum of all its positive divisors, including itself, is twice the number.

  52. Why is 666 the smallest perfect number?

    Its proper divisors are 111, 222, and 333, and 1+2+3=61+2+3=61+2+3=6.

  53. What are the first perfect numbers listed in the content?

    666, 282828, and 496496496.

  54. How does a Mersenne prime produce an even perfect number?

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

  55. Which perfect number results from the first Mersenne prime, 333?

    Using p=2p=2p=2, 2p−1(2p−1)=2×3=62^{p-1}(2^p-1)=2\times3=62p−1(2p−1)=2×3=6.

  56. How does the factor structure of 282828 illustrate its connection to a Mersenne prime?

    The divisors are 1,2,4,7,14,281,2,4,7,14,281,2,4,7,14,28. The first three are powers of 222; the last three are those same powers multiplied by the Mersenne prime 777.

  57. What is a group in group theory?

    A set equipped with a binary operation satisfying closure, associativity, the existence of an identity element, and the existence of an inverse for every element.

  58. What does closure mean for a group operation?

    Combining any two elements of the group with its operation produces another element in the same group.

  59. What does associativity mean for a group operation?

    For all group elements a,b,ca,b,ca,b,c, (a∗b)∗c=a∗(b∗c)(a\ast b)\ast c=a\ast(b\ast c)(a∗b)∗c=a∗(b∗c).

  60. What is an identity element in a group?

    An element that leaves every other element unchanged when combined with it under the group operation. For integer addition, the identity is 000.

  61. What is an inverse in a group?

    For each element, an inverse combines with it to produce the identity. Under integer addition, the inverse of a number is its negative.

  62. What is the group of integers modulo 101010 under addition modulo 101010?

    It consists of the elements 000 through 999, with sums reduced to their remainders modulo 101010. For example, 5+6≡1(mod10)5+6\equiv1\pmod{10}5+6≡1(mod10).

  63. What is the order of a group?

    The number of elements in the group. The group of integers modulo 101010 has order 101010.

  64. What is the order of an element in a group?

    The smallest positive number of repeated applications of the group operation to that element that gives the identity.

  65. What are the orders of 444 and 333 in the additive group modulo 101010?

    The order of 444 is 555, since five copies sum to 20≡0(mod10)20\equiv0\pmod{10}20≡0(mod10). The order of 333 is 101010, since ten copies sum to 30≡0(mod10)30\equiv0\pmod{10}30≡0(mod10).

  66. If repeating an operation on an element sss times gives the identity, what can be said about sss and the element's order?

    sss is a multiple of the element's order.

  67. How are the order of a group and the order of any element in it related?

    An element's order cannot exceed the order of the group.

  68. What are the numbers xxx and yyy used in the Lucas–Lehmer sequence explanation?

    x=2+3x=2+\sqrt{3}x=2+3​ and y=2−3y=2-\sqrt{3}y=2−3​.

  69. What useful identity do x=2+3x=2+\sqrt{3}x=2+3​ and y=2−3y=2-\sqrt{3}y=2−3​ satisfy?

    xy=1xy=1xy=1.

  70. How can the Lucas–Lehmer sequence term SnS_nSn​ be expressed using xxx and yyy?

    Sn=x2n−1+y2n−1S_n=x^{2^{n-1}}+y^{2^{n-1}}Sn​=x2n−1+y2n−1.

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

    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, the expression for the next term.

  72. What assumption begins the proof that a Mersenne number Mp=2p−1M_p=2^p-1Mp​=2p−1 passing the Lucas–Lehmer test must be prime?

    Assume for contradiction that MpM_pMp​ is composite and has a smallest prime factor qqq.

  73. Why must the smallest prime factor qqq of an odd composite Mersenne number satisfy q>2q>2q>2?

    Every Mersenne number 2p−12^p-12p−1 is odd, so it is not divisible by 222.

  74. Why is q2≤Mpq^2\le M_pq2≤Mp​ when qqq is the smallest prime factor of a composite MpM_pMp​?

    Factors of a composite number come in pairs. The smallest factor cannot exceed the square root of the number, so its square is at most MpM_pMp​.

  75. How is the set XXX in the Lucas–Lehmer proof constructed?

    Take elements of the form a+b3a+b\sqrt{3}a+b3​, where aaa and bbb are integers modulo qqq, and define multiplication with coefficients reduced modulo qqq.

  76. Why is multiplication closed in the set XXX of elements a+b3a+b\sqrt{3}a+b3​ modulo qqq?

    Multiplying two such elements produces another expression of the same form, and reducing its coefficients modulo qqq keeps it in XXX.

  77. How many elements does the set XXX in the Lucas–Lehmer proof contain?

    q2q^2q2, since there are qqq choices each for aaa and bbb.

  78. What is the multiplicative group X∗X^*X∗ used in the Lucas–Lehmer proof?

    It consists of the invertible elements of XXX under multiplication. The identity is 111, and 000 is the element without a multiplicative inverse, so X∗X^*X∗ has order q2−1q^2-1q2−1.

  79. Why does the Lucas–Lehmer proof treat x=2+3x=2+\sqrt{3}x=2+3​ as an element of X∗X^*X∗?

    For q>2q>2q>2, xxx belongs to XXX, and its multiplicative inverse is y=2−3y=2-\sqrt{3}y=2−3​ because xy=1xy=1xy=1.

  80. What does the Lucas–Lehmer divisibility condition imply about the order of xxx in X∗X^*X∗?

    It implies x2p=1x^{2^p}=1x2p=1, so the order of xxx divides 2p2^p2p; the preceding power x2p−1x^{2^{p-1}}x2p−1 is not 111.

  81. Why does the Lucas–Lehmer proof conclude that the order of xxx is 2p2^p2p?

    The order divides 2p2^p2p but does not divide 2p−12^{p-1}2p−1. Since every divisor of 2p2^p2p is a power of 222, the order must be 2p2^p2p.

  82. How does the group-size bound produce a contradiction in the Lucas–Lehmer proof?

    An element's order cannot exceed the group's order, but xxx has order 2p2^p2p while ∣X∗∣=q2−1<q2≤Mp=2p−1|X^*|=q^2-1<q^2\le M_p=2^p-1∣X∗∣=q2−1<q2≤Mp​=2p−1. This contradiction rules out a composite MpM_pMp​.

  83. What is GIMPS, and what is its purpose?

    The Great Internet Mersenne Prime Search is a volunteer computing project that uses free software to search for Mersenne primes.

  84. When was GIMPS founded, and by whom?

    It was founded in 1996 by George Woltman.

  85. How many times had GIMPS discovered a new largest known prime by the time described in the content?

    It had discovered a new largest known prime 151515 times.

  86. Who found the record-breaking prime discovered on December 7, 2018, and what kind of computer did he use?

    Patrick Laroche found it using an ordinary home computer with a 2014 Intel processor.

  87. How long can it take a modern computer to check a Mersenne number with millions of digits, and how does GIMPS increase its search capacity?

    Checking one can take a week to a month or longer. GIMPS combines the computing power of hundreds of thousands of volunteer computers and can check almost a thousand numbers per day.

Card 1 of 87
Card 1 of 87

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent