Prime Numbers and Euclid’s Proof
- 68Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
How large was the prime described at the beginning, and how can it be written?
68 questions
- 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−1.
Explanation
The content identifies the opening prime by both its digit count and its Mersenne-number form.
- 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−1.
Explanation
The record prime is presented as an example of an enormous prime with a compact exponential expression.
- 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
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 1 to form Q. No listed prime divides Q, so Q has a prime factor outside the list.
Explanation
Dividing the product plus 1 by any listed prime leaves remainder 1.
- 5
Why does Euclid’s argument work whether the constructed number Q is prime or composite?
Model answer
If Q is prime, it is a prime missing from the list. If Q is composite, at least one of its prime factors is missing from the list because none of the listed primes divides Q.
Explanation
Both possible classifications of Q contradict the assumption that the list contains every prime.
- 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,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
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
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
How does the Sieve of Eratosthenes identify primes?
Model answer
Starting with 2, 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
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
What are the main steps of the Sieve of Atkin as described in the content?
Model answer
It starts with 2, 3, and 5, uses three quadratic expressions evaluated modulo 60 for chosen values of x and y, and then removes multiples of the squares of listed primes beginning with 7.
Explanation
The residue-based marking stage is followed by a square-multiple elimination stage.
- 12
Which three expressions does the Sieve of Atkin use, and how are x and y used?
Model answer
It uses 4x2+y2, 3x2+y2, and 3x2−y2, evaluating them modulo 60 for pairs of positive values of x and y up to a chosen limit.
Explanation
The resulting values are used in the sieve’s residue-based process for identifying prime candidates.
- 13
What does the final square-removal stage of the Sieve of Atkin do?
Model answer
For each listed number after 2, 3, and 5, it removes multiples of that number’s square, beginning with 7.
Explanation
This step removes composite candidates that are multiples of a prime square.
- 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 1 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
State Fermat’s Little Theorem in congruence form.
Model answer
If p is prime, then for an integer a less than p, ap≡a(modp).
Explanation
Equivalently, p divides ap−a.
- 16
How might Fermat’s Little Theorem be used as a primality test?
Model answer
Choose a value of a, calculate ap−a, and check whether it is divisible by the candidate p. 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
Why does the Fermat test with a=2 fail to establish that 341 is prime?
Model answer
Although 2341−2 is divisible by 341, 341 is composite. Testing with a=3 exposes that it fails the condition.
Explanation
A composite number can pass a Fermat test for one chosen base.
- 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 a. 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
How common were Carmichael numbers up to one million according to the content?
Model answer
There were 43 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
How does the Miller–Rabin test begin decomposing an odd candidate number n?
Model answer
It writes n as 2xy+1, where y is odd, and then chooses a base a smaller than n.
Explanation
For example, 221=22⋅55+1.
- 21
In the Miller–Rabin test, what is done with the initial modular power, and what happens if it is neither 1 nor −1?
Model answer
Compute ay modulo n. If the result is neither 1 nor −1, repeatedly square it modulo n, checking whether a result becomes −1.
Explanation
The repeated squaring stage uses the factorization n−1=2xy+1.
- 22
How does the Miller–Rabin example show that 221 is composite?
Model answer
For n=221, the decomposition is 221=22⋅55+1. With a=13, the successive remainders are 208, then 169, then 52; none is −1 at the required stage, so the test establishes that 221 is composite.
Explanation
A base that fails the Miller–Rabin conditions is a witness to compositeness.
- 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 8 and 11 as witnesses for the prime 37, and 13 as a liar for the composite 85.
- 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% confidence.
Explanation
The stated reasoning is that a composite has, on average, about 25% liars among possible bases.
- 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
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
What special polynomial property of primes underlies the AKS test?
Model answer
For a prime p, the coefficients in (x+1)p−xp−1 are divisible by p.
Explanation
The AKS test relies on this property to determine primality conclusively.
- 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,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
What is a Mersenne number, and what additional condition makes it a Mersenne prime?
Model answer
A Mersenne number has the form 2n−1. It is a Mersenne prime if that number is prime.
Explanation
The record primes discussed in the content have this form.
- 30
Why are powers of 2 minus 1 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
What are the first three Mersenne primes listed in the content?
Model answer
They are 3, 7, and 31.
Explanation
They are obtained from powers of 2 minus 1 that happen to be prime.
- 32
If n is composite, why must 2n−1 also be composite?
Model answer
Write n=xy with x and y greater than 1. Then 2xy−1 is divisible by 2x−1, so it has a nontrivial factor.
Explanation
The identity 2xy−1=(2x−1)(1+2x+22x+⋯+2(y−1)x) gives the factorization.
- 33
Does a prime exponent n guarantee that 2n−1 is prime? Explain with the given counterexample.
Model answer
No. When n=11, which is prime, 211−1=2047 is composite.
Explanation
The factorization result provides a necessary condition on the exponent, not a guarantee of primality.
- 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
Why is 6 the smallest perfect number, and what other early examples are given?
Model answer
The proper divisors of 6, namely 1, 2, and 3, sum to 6. The next examples given are 28 and 496.
Explanation
Including 6 itself makes the sum of all its divisors 12, twice 6.
- 36
How does a Mersenne prime produce a perfect number?
Model answer
If 2n−1 is prime, then 2n−1(2n−1) is a perfect number.
Explanation
For the first Mersenne prime, 3=22−1, the construction gives 22−1⋅3=6.
- 37
How do the divisors of 28 illustrate its connection to a Mersenne prime?
Model answer
Its divisors are 1, 2, 4, 7, 14, and 28. The first three are powers of 2, and the last three are those same powers multiplied by 7, the corresponding Mersenne prime.
Explanation
This grouping shows how the factors associated with the Mersenne prime contribute to the perfect-number divisor sum.
- 38
How does the geometric sum of powers of 2 help explain the perfect-number formula?
Model answer
The sum 1+2+⋯+2n−1 equals 2n−1. Grouping the divisors into these powers and the same powers multiplied by 2n−1 gives a total divisor sum twice 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
What recurrence defines the sequence used by the Lucas–Lehmer test?
Model answer
It begins with S1=4, and each next term is the previous term squared minus 2: Sk+1=Sk2−2.
Explanation
The first terms are 4, 14, and 194.
- 40
What does the Lucas–Lehmer test check for a candidate 2p−1?
Model answer
It checks whether the (p−1)st sequence term is divisible by 2p−1; if the remainder is 0, the candidate is prime.
Explanation
The test uses the sequence beginning at 4 and repeatedly squaring and subtracting 2.
- 41
How does the Lucas–Lehmer test verify that 7 is prime?
Model answer
Since 7=23−1, use the second sequence term, 14. Because 7 divides 14, the test identifies 7 as prime.
Explanation
For exponent p=3, the required term is the (p−1)st term, or the second term.
- 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
How does the content use the Lucas–Lehmer test to check 8191?
Model answer
Because 8191=213−1, it calculates the twelfth sequence term using modular reductions. That term is congruent to 0 modulo 8191, so the test concludes that 8191 is prime.
Explanation
The exponent 13 requires the (13−1)st term.
- 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
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
How do integers with addition satisfy closure, associativity, identity, and inverses?
Model answer
Integer sums are integers, addition is associative, 0 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
How is addition modulo 10 defined, and why does it give a closed operation on the set from 0 to 9?
Model answer
Add the numbers and take the remainder modulo 10. The result is always one of 0 through 9, so it stays in the set.
Explanation
For instance, 5+6=11, which is 1 modulo 10.
- 48
What is the order of a group, and what is the order of the group of integers modulo 10?
Model answer
The order of a group is its number of elements. The group of integers modulo 10 has order 10.
Explanation
Its elements are 0,1,2,…,9.
- 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
Find the order of 4 under addition modulo 10 and explain the repeated-operation sequence.
Model answer
Its order is 5: the successive results are 4, 8, 2, 6, and 0 modulo 10.
Explanation
The first time repeated addition of 4 reaches the identity 0 is after five additions.
- 51
If repeating an operation on an element s times gives the identity, what can be concluded about s and the element’s order?
Model answer
The element’s order divides s, so s is a multiple of the order.
Explanation
For example, both 5 and 10 additions of 4 give 0 modulo 10, and both are multiples of its order, 5.
- 52
What is the order of 3 under addition modulo 10, and what does this example show?
Model answer
Its order is 10. Repeated addition of 3 cycles through all ten elements before returning to 0.
Explanation
The example shows that an element’s order can equal the order of its group.
- 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
How are the sequence terms represented using x=2+3 and y=2−3?
Model answer
The nth term is Sn=x2n−1+y2n−1, and xy=1.
Explanation
For n=1, this gives x+y=4, the sequence’s first term.
- 55
Why does the representation Sn=x2n−1+y2n−1 obey the Lucas–Lehmer recurrence?
Model answer
Squaring the expression and subtracting 2 cancels the middle term because xy=1, leaving x2n+y2n, which is the representation for Sn+1.
Explanation
This algebra verifies that the representation follows the recurrence Sn+1=Sn2−2.
- 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−1 is composite and let q 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
If q is the smallest factor of a composite Mersenne number Mp=2p−1, what basic bounds on q are stated?
Model answer
Since Mp is odd, q>2. Also, q2≤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
How is the set X in the Lucas–Lehmer proof constructed, and how many elements does it have?
Model answer
It consists of numbers a+b3 with a and b taken modulo q. There are q2 possible pairs, so the set has q2 elements.
Explanation
The construction combines two independently chosen coefficients from a set of q residues.
- 59
Why is multiplication described as closed in the constructed set X?
Model answer
Multiplying two elements of the form a+b3 gives another expression of that form, and reducing its coefficients modulo q keeps them in the set of residues.
Explanation
The content defines the multiplication so the product remains within X.
- 60
What is the purpose of defining X∗ from X in the Lucas–Lehmer argument?
Model answer
X∗ is the group of elements of X that have multiplicative inverses. Its identity is 1, and the content gives its order as q2−1.
Explanation
The argument compares the order of a particular element with the size of this multiplicative group.
- 61
What order properties of the element x does the Lucas–Lehmer proof derive?
Model answer
It derives that x2p=1 while x2p−1=1, so the order of x divides 2p but does not divide 2p−1. The argument concludes that its order is 2p.
Explanation
Because divisors of a power of 2 are themselves powers of 2, these conditions force the stated order.
- 62
How does the Lucas–Lehmer proof obtain a contradiction from the order of x?
Model answer
The order of an element cannot exceed the group order, so it must be at most q2−1. But the derived order is 2p, while q2≤Mp=2p−1, making q2−1<2p.
Explanation
The derived lower requirement on the order exceeds the group’s maximum possible order.
- 63
What conclusion follows from the contradiction in the Lucas–Lehmer proof?
Model answer
The assumption that Mp is composite must be false, so Mp is prime.
Explanation
The contradiction arises from assuming a composite candidate has a smallest factor q.
- 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
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
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 15 times.
Explanation
The content describes this as a result of the project’s ongoing collaborative search.
- 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
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.

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