Prime Numbers and Euclid’s Proof
- 87Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- 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?
The example had 687 digits. The largest known prime had almost 25 million digits.
Or swipe the card
87 cards
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.
How can the largest known prime described in the content be written?
282,589,933−1. It was discovered in 2018.
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×13.
What did Euclid prove about prime numbers?
Euclid proved that there are infinitely many prime numbers.
In Euclid's proof, how is a number Q constructed from an assumed complete list of primes P?
Multiply all the primes in P together and add 1: Q=(∏p∈Pp)+1.
Why does Euclid's constructed number Q lead to a contradiction if it is prime?
If Q is prime, it is a prime not included in the supposedly complete list P.
Why does Euclid's constructed number Q lead to a contradiction if it is composite?
Any prime factor of Q cannot be in P, because dividing Q by any prime in P leaves remainder 1. Thus a prime outside the supposedly complete list exists.
Why can trial division stop after testing divisors up to n?
Divisors come in pairs. If n has a divisor larger than n, its paired divisor must be smaller than n, so a factor would already have been found.
Why is it sufficient to test only prime divisors up to n when checking whether n is prime?
Every composite number has a prime factor, and every composite number has a factor at most n. Therefore, testing prime divisors up to that limit is sufficient.
What is the basic process of the Sieve of Eratosthenes?
Start with 2, 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.
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.
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.
What numbers does the Sieve of Atkin place in its initial prime list?
It begins with 2, 3, and 5.
Which three expressions does the Sieve of Atkin use to generate prime candidates?
4x2+y2, 3x2+y2, and 3x2−y2.
How does the Sieve of Atkin use the three expressions involving x and y?
It evaluates the expressions for values of x and y up to a chosen limit, considers their values modulo 60, and toggles candidate numbers according to the expression-specific residue rules.
What does the Sieve of Atkin do after generating its candidate list?
Starting with the first candidate after 2, 3, and 5—namely 7—it removes multiples of that candidate's square, then repeats with later candidates.
How quickly can the Sieve of Atkin identify primes up to 1 billion on modern computers, according to the content?
In less than a second.
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.
What does Fermat's Little Theorem state for a prime p and an integer a?
For prime p, ap≡a(modp). Equivalently, p divides ap−a.
How can Fermat's Little Theorem be used as a primality test?
Choose a base a and check whether ap≡a(modp). A failure proves the candidate is composite; passing the test suggests primality but does not prove it.
Why does testing 7 with base 2 satisfy Fermat's Little Theorem?
27−2=126, which is divisible by 7.
How does 341 demonstrate a weakness of a Fermat test using base 2?
341 is composite, yet 2341−2 is divisible by 341, so the base-2 test incorrectly makes it appear prime.
What happens when 341 is tested with base 3 in the Fermat test?
It fails the test with base 3, revealing that 341 is composite.
What is a Carmichael number?
A composite number that passes the Fermat primality test for every eligible base a, making it appear prime under that test.
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.
How many Carmichael numbers are there up to 1 million, according to the content?
There are 43.
What is the first step of the Miller–Rabin test as described in the content?
Write the candidate as n=2xy+1, where x and y are integers.
How is the Miller–Rabin test's initial modular value calculated?
Choose a base a<n and calculate aymodn.
What does the Miller–Rabin test do if its initial modular value is neither 1 nor −1?
It repeatedly squares the value modulo n, checking whether a remainder becomes −1, for up to x squarings.
What conclusion does the Miller–Rabin test draw if no checked remainder becomes −1?
The candidate is composite; this conclusion is certain for that test.
In the Miller–Rabin example for 221, what decomposition and base are used, and what result reveals compositeness?
221=22×55+1 and the base is 13. The successive remainders are 208, 169, and 52; none is −1, so 221 is composite.
In the Miller–Rabin example for 37, what happens using base 8?
37=22×9+1. Since 89mod37=6 and 62mod37=36≡−1(mod37), the test reports 37 as probably prime for that base.
What are witness numbers in the Miller–Rabin examples?
Bases that make the test report a candidate as probably prime. The content identifies 8 and 11 as witnesses for 37.
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, 13 is a liar for 85.
What result does the Miller–Rabin example give for 85 with base 13?
85=22×21+1 and 1321mod85=13. Squaring gives −1(mod85), so this base makes composite 85 appear probably prime.
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% confidence.
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.
Which primality test is described as conclusive for any number?
The Agrawal–Kayal–Saxena (AKS) primality test.
What special property of prime p does the AKS test use?
When (x+1)p−xp−1 is expanded, all its coefficients are divisible by p.
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,000-digit candidate could take years to test on a modern computer.
What is a Mersenne number?
A number of the form 2n−1. If such a number is prime, it is called a Mersenne prime.
What form does the largest known prime described in the content have?
It has the Mersenne form 2n−1.
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.
What are the first three Mersenne primes listed in the content?
3, 7, and 31.
If n is composite, why must 2n−1 be composite?
Write n=xy with x,y>1. Then 2xy−1 is divisible by 2x−1, since 2xy−1=(2x−1)(1+2x+22x+⋯+2(y−1)x).
Does prime n guarantee that 2n−1 is prime?
No. For example, 11 is prime, but 211−1=2047 is composite.
What is the Lucas–Lehmer sequence used for testing Mersenne numbers?
Start with S1=4 and repeatedly apply Sk+1=Sk2−2, giving initial terms 4,14,194,….
What is the Lucas–Lehmer test for a Mersenne number 2p−1 when p is prime, using a sequence that starts with S1=4?
Compute through Sp−1. The Mersenne number 2p−1 is prime exactly when it divides Sp−1.
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.
How does the Lucas–Lehmer test handle 23−1?
The second sequence term is 14, and 14 is divisible by 7=23−1, so the test identifies 7 as prime.
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.
Why is 6 the smallest perfect number?
Its proper divisors are 1, 2, and 3, and 1+2+3=6.
What are the first perfect numbers listed in the content?
6, 28, and 496.
How does a Mersenne prime produce an even perfect number?
If 2p−1 is prime, then 2p−1(2p−1) is perfect.
Which perfect number results from the first Mersenne prime, 3?
Using p=2, 2p−1(2p−1)=2×3=6.
How does the factor structure of 28 illustrate its connection to a Mersenne prime?
The divisors are 1,2,4,7,14,28. The first three are powers of 2; the last three are those same powers multiplied by the Mersenne prime 7.
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.
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.
What does associativity mean for a group operation?
For all group elements a,b,c, (a∗b)∗c=a∗(b∗c).
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 0.
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.
What is the group of integers modulo 10 under addition modulo 10?
It consists of the elements 0 through 9, with sums reduced to their remainders modulo 10. For example, 5+6≡1(mod10).
What is the order of a group?
The number of elements in the group. The group of integers modulo 10 has order 10.
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.
What are the orders of 4 and 3 in the additive group modulo 10?
The order of 4 is 5, since five copies sum to 20≡0(mod10). The order of 3 is 10, since ten copies sum to 30≡0(mod10).
If repeating an operation on an element s times gives the identity, what can be said about s and the element's order?
s is a multiple of the element's order.
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.
What are the numbers x and y used in the Lucas–Lehmer sequence explanation?
x=2+3 and y=2−3.
What useful identity do x=2+3 and y=2−3 satisfy?
xy=1.
How can the Lucas–Lehmer sequence term Sn be expressed using x and y?
Sn=x2n−1+y2n−1.
Why does the expression Sn=x2n−1+y2n−1 follow the Lucas–Lehmer recurrence?
Squaring the expression and subtracting 2 cancels the middle term because xy=1, leaving x2n+y2n, the expression for the next term.
What assumption begins the proof that a Mersenne number Mp=2p−1 passing the Lucas–Lehmer test must be prime?
Assume for contradiction that Mp is composite and has a smallest prime factor q.
Why must the smallest prime factor q of an odd composite Mersenne number satisfy q>2?
Every Mersenne number 2p−1 is odd, so it is not divisible by 2.
Why is q2≤Mp when q is the smallest prime factor of a composite Mp?
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 Mp.
How is the set X in the Lucas–Lehmer proof constructed?
Take elements of the form a+b3, where a and b are integers modulo q, and define multiplication with coefficients reduced modulo q.
Why is multiplication closed in the set X of elements a+b3 modulo q?
Multiplying two such elements produces another expression of the same form, and reducing its coefficients modulo q keeps it in X.
How many elements does the set X in the Lucas–Lehmer proof contain?
q2, since there are q choices each for a and b.
What is the multiplicative group X∗ used in the Lucas–Lehmer proof?
It consists of the invertible elements of X under multiplication. The identity is 1, and 0 is the element without a multiplicative inverse, so X∗ has order q2−1.
Why does the Lucas–Lehmer proof treat x=2+3 as an element of X∗?
For q>2, x belongs to X, and its multiplicative inverse is y=2−3 because xy=1.
What does the Lucas–Lehmer divisibility condition imply about the order of x in X∗?
It implies x2p=1, so the order of x divides 2p; the preceding power x2p−1 is not 1.
Why does the Lucas–Lehmer proof conclude that the order of x is 2p?
The order divides 2p but does not divide 2p−1. Since every divisor of 2p is a power of 2, the order must be 2p.
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 x has order 2p while ∣X∗∣=q2−1<q2≤Mp=2p−1. This contradiction rules out a composite Mp.
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.
When was GIMPS founded, and by whom?
It was founded in 1996 by George Woltman.
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 15 times.
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.
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.

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