test for primality of Mersenne numbers
Suppose p is an odd prime, and define a sequence Ln recursively as
L0=4,Ln+1=(L2n-2)mod |
The number is prime if and only if .
References
- 1 Donald E. Knuth. The Art of Computer Programming, volume 2. Addison-Wesley, 1969.
Title | test for primality of Mersenne numbers |
---|---|
Canonical name | TestForPrimalityOfMersenneNumbers |
Date of creation | 2013-03-22 13:39:48 |
Last modified on | 2013-03-22 13:39:48 |
Owner | bbukh (348) |
Last modified by | bbukh (348) |
Numerical id | 8 |
Author | bbukh (348) |
Entry type | Algorithm |
Classification | msc 11A41 |
Classification | msc 11Y11 |
Classification | msc 11A51 |