Exercise 2194Number theory › PrimesM1Added 3 Nov 2026
The Lucas–Lehmer test
#Lucas-Lehmer#Mersenne#primality
Statement
State the Lucas–Lehmer test for Mersenne primes and apply it to .
Hint
Define , . is prime iff .
Show solutionHide solution
Solution
Test. For prime, is prime iff , where and .
Apply to . . . . Since and , is prime. ✓
Conclusion. Lucas–Lehmer is a fast test for Mersenne primes; used to find the largest known primes.