Exercise 1131Number theory › PrimesL1Added 3 Nov 2026
Fermat's little theorem and compositeness
#Fermat#compositeness test#modular exponentiation
Statement
Use Fermat's little theorem to show that is composite.
Hint
Find coprime to with .
Show solutionHide solution
Solution
Fermat test. If were prime, then for all coprime to .
Try . , so .
Conclusion. , so is composite.