1. Home
  2. Explore
  3. Mathematics
  4. Large Prime Number Generation

Study methods

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

Large Prime Number Generation

  • 17Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Fermat Primality Test
Fermat's Little Theorem states that if ppp is prime and aaa is not divisible by ppp, then $a^{p-1} \equiv
\pmod{p}$.

17 questions

  1. 1
    Fermat's Little Theorem states that if ppp is prime and aaa is not divisible by ppp, then $a^{p-1} \equiv
    _____
    \pmod{p}$.
    Hint

    Think about the remainder when dividing by ppp.

    Answer

    1

  2. 2
    In the Fermat primality test, if an−1≢1(modn)a^{n-1} \not\equiv 1 \pmod{n}an−1≡1(modn), then nnn is
    _____
    .
    Hint

    Consider the contrapositive of Fermat's Little Theorem.

    Answer

    composite

  3. 3
    In primality testing, a base aaa that causes a composite number to satisfy the Fermat condition is called a
    _____
    .
    Hint

    It 'lies' about the number being prime.

    Answer

    liar

  4. 4
    A base aaa that detects a composite number by failing the Fermat test is called a
    _____
    .
    Hint

    It 'witnesses' the compositeness.

    Answer

    witness

  5. 5
    Carmichael numbers are composite numbers that pass the Fermat test for all bases that are
    _____
    to nnn.
    Hint

    The bases must have no common factor with nnn.

    Answer

    coprime

  6. 6
    The smallest Carmichael number is
    _____
    .
    Hint

    It is a three-digit number that is 3×11×173 \times 11 \times 173×11×17.

    Answer

    561

  7. 7
    In Miller's test, after computing an−1(modn)a^{n-1} \pmod{n}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

  8. 8
    Miller'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

  9. 9
    Miller'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

  10. 10
    In modular arithmetic with a prime modulus ppp, the only square roots of 1 are 1 and
    _____
    .
    Hint

    It is congruent to -1 modulo ppp.

    Answer

    p-1

  11. 11
    Miller's test incorrectly declares the composite number
    _____
    as prime when using base 174.
    Hint

    It factors as 13×1713 \times 1713×17.

    Answer

    221

  12. 12
    If the Extended Riemann Hypothesis is true, every composite number nnn has a witness less than
    _____
    .
    Hint

    It involves the natural logarithm squared.

    Answer

    2(ln⁡n)22(\ln n)^22(lnn)2

  13. 13
    In 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

  14. 14
    After 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

  15. 15
    The Prime Number Theorem states that the probability a random nnn-digit number is prime is roughly $1/(\
    _____
    )$.
    Hint

    It is approximately ln⁡(10)≈2.3\ln(10) \approx 2.3ln(10)≈2.3 times the number of digits.

    Answer

    2.3n2.3n2.3n

  16. 16
    To 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

  17. 17
    The 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

1 of 17
Question 1 of 17

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent