statement theorem
Lucas–Lehmer test
Statement
Let be an odd prime, and let be the Mersenne number. Define the sequence by and for . Then is prime if and only if .
Remarks
For example, take and . Modulo , the sequence is , so and is prime. In practice, one reduces each term modulo . Then the test needs squarings of numbers with at most bits.
History
Édouard Lucas developed the test in 1878, and Derrick Henry Lehmer proved it in 1930.
Explanations
L1 human
The test checks a Mersenne number for primality with a simple loop: square, subtract , and reduce modulo . After steps, the result is exactly when is prime.
What this node needs for W2
- edge about out: the concepts that the statement is about (0 of 1)
- edge proves in: at least one proof node (0 of 1)
- edge instance_of or illustrates in: one example that shows the statement at work (0 of 1)
- explanation L2 (0 of 1)
The writing levels say how complete the text of a node is. They do not measure its truth.
What this needs
To read this node, read these 4 nodes in this order. The foundations come first, and the list ends with this node.
- no evidence level
- Divisibility definition
- Mersenne number definition
- Congruence modulo n definition
- Lucas–Lehmer test statement
Sources
What links here
No node links to this node yet.