Commit 2025-08-13 10:56 90670899
View on Github →feat(NumberTheory/LucasLehmer): prove converse direction to Lucas-Lehmer (#26272)
Proves the converse direction of the Lucas-Lehmer test, namely that the Lucas-Lehmer criterion is a necessary condition for a Mersenne prime.
Adds a couple of examples of proving Mersenne numbers are composite using this.
Proves that if 2^p-1
is prime then p
is prime.