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.
12.1.1. Introduction to Fermat’s Little Theorem and Primality Testing
This section
Practice test
11 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
2 cards from this lesson. Good the night before a test.
Try these first
- 1.
What is Fermat's Little Theorem?
Hint
Focus on the relationship between primes and coprime integers.
- 2.
Give an example of two coprime numbers.
Hint
Check their prime factors to see if they share any.
- 3.
What does Fermat's Little Theorem state?
- a) It applies only to even numbers.
- b) If p is prime
- a^(p-1) ≡ 1 (mod p) for coprime a.
- c) All composite numbers are prime.
- d) Only prime squares satisfy it.
Hint
Think of relationships between primes and their determinants.
- 4.
True or False: Carmichael numbers can pass Fermat's test for any base.
- True
- False
Hint
Recall definitions of Carmichael numbers and their properties.
- 5.
Prove that there exist composite numbers that are Carmichael numbers. Give an example.
Hint
Investigate how the prime factorization relates to Fermat’s conditions.
- 6.
If you have an arbitrary integer n that is not prime, suggest a primality test using Fermat's theorem.
Hint
Identify bases that offer the best logical coverage in the integer space.
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 freeQuiz
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 freeChallenge 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