AllRounder.ai
Chapters in this course

Enrol to start learning

Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.

Enrol free

12.3.2. Primality Testing Algorithm Limitations

  • This section

    Practice test

    11 questions on this section. Wrong answers show you what to read again.

    Sign up to take it
  • Whole chapter

    Revision test

    Mixed questions from across the chapter. Your answers get marked.

    Sign up to take it
  • Quick

    Flashcard drill

    3 cards from this lesson. Good the night before a test.

Try these first

  1. 1.

    What is Fermat's Little Theorem?

    Hint

    Think about how it relates to primes and modular arithmetic.

  2. 2.

    Explain what a pseudo prime is.

    Hint

    Consider an example of a composite number.

  3. 3.

    What does Fermat's Little Theorem state for a prime p?

    • a^(p-1) ≡ 1 (mod p)
    • a^(p) ≡ 1 (mod p)
    • p | a
    • gcd(a
    • p) = 0
    Hint

    Recall the theorem definition directly.

  4. 4.

    Is 341 a pseudo prime?

    • True
    • False
    Hint

    Think about its factors.

  5. 5.

    Prove that 561 is a Carmichael number by demonstrating it satisfies Fermat's theorem for all valid bases.

    Hint

    Tackle it by considering GCD conditions for 3, 11, and 17, and apply Fermat's theorem.

  6. 6.

    Find a composite number greater than 100 which is not a Carmichael number and explain why it fails the Fermat test.

    Hint

    Test various bases and demonstrate a failure in at least one case.

Exercises

Total Questions

2

Estimated Time

4 min

Passing Score

70%

Instructions

  • Read each question carefully
  • You can use hints if you need help
  • Complete all questions before submitting

4 more questions available

Enrol free

Quiz

Total Questions

2

Estimated Time

4 min

Passing Score

70%

Instructions

  • Read each question carefully
  • You can use hints if you need help
  • Complete all questions before submitting

1 more question available

Enrol free

Challenge Problems

Total Questions

2

Estimated Time

4 min

Passing Score

70%

Instructions

  • Read each question carefully
  • You can use hints if you need help
  • Complete all questions before submitting