A Modification of LLR
Abstract
The Lucas-Lehmer (LL) primality test for Mersenne numbers is the fastest known primality test. In 1969, Hans Riesel published a modification of LL to test numbers of the form N = h · 2n - 1, where h < 2n is an odd integer and n 2 Riesel. This test is now known as the Lucas-Lehmer-Riesel (LLR) primality test. In Algorithm PrimalityAlgorithm, we present a modification of LLR which works for any odd integer N. A probabilistic version of our algorithm runs in expected time O(3 N), and a deterministic version in expected O(4 N). We conclude with a conjecture which, if true, would imply that there exists a polynomial time algorithm for factoring integers.
Turn this paper into a lesson
ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.