Large Prime Number Generation
- 17Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
17 questions
- 1Fermat's Little Theorem states that if p is prime and a is not divisible by p, then $a^{p-1} \equiv_____\pmod{p}$.
Hint
Think about the remainder when dividing by p.
Answer
1
- 2In the Fermat primality test, if an−1≡1(modn), then n is_____.
Hint
Consider the contrapositive of Fermat's Little Theorem.
Answer
composite
- 3In primality testing, a base a that causes a composite number to satisfy the Fermat condition is called a_____.
Hint
It 'lies' about the number being prime.
Answer
liar
- 4A base a that detects a composite number by failing the Fermat test is called a_____.
Hint
It 'witnesses' the compositeness.
Answer
witness
- 5Carmichael numbers are composite numbers that pass the Fermat test for all bases that are_____to n.
Hint
The bases must have no common factor with n.
Answer
coprime
- 6The smallest Carmichael number is_____.
Hint
It is a three-digit number that is 3×11×17.
Answer
561
- 7In Miller's test, after computing an−1(modn), the exponent is repeatedly_____to generate a sequence of smaller exponentiations.
Hint
The operation is reversing the squaring process.
Answer
divided by 2
- 8Miller's test condition 1 requires that the final number in the sequence is_____.
Hint
This is the same as the Fermat test condition.
Answer
1
- 9Miller's test condition 2 requires that whenever a 1 appears in the sequence, the number immediately before it must be either 1 or_____.
Hint
It is the modular equivalent of -1.
Answer
n-1
- 10In modular arithmetic with a prime modulus p, the only square roots of 1 are 1 and_____.
Hint
It is congruent to -1 modulo p.
Answer
p-1
- 11Miller's test incorrectly declares the composite number_____as prime when using base 174.
Hint
It factors as 13×17.
Answer
221
- 12If the Extended Riemann Hypothesis is true, every composite number n has a witness less than_____.
Hint
It involves the natural logarithm squared.
Answer
2(lnn)2
- 13In the Miller-Rabin test, for any odd composite number, at least_____% of possible bases are witnesses.
Hint
It is a fraction: three-quarters.
Answer
75
- 14After 10 iterations of the Miller-Rabin test that all say a number is prime, the chance of a false positive is at most 1 in_____.
Hint
It is a six-digit number starting with 1.
Answer
a million
- 15The Prime Number Theorem states that the probability a random n-digit number is prime is roughly $1/(\_____)$.
Hint
It is approximately ln(10)≈2.3 times the number of digits.
Answer
2.3n
- 16To generate a large prime number, computers repeatedly pick random numbers and test them with the_____test until a prime is found.
Hint
It is the standard probabilistic test used in practice.
Answer
Miller-Rabin
- 17The AKS primality test is deterministic but runs much_____than the Miller-Rabin test.
Hint
It is not used in practice due to speed.
Answer
slower

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