English

A Modification of LLR

Number Theory 2013-04-17 v3

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=h2n1N = h \cdot 2^n - 1, where h<2nh < 2^n is an odd integer and n2n \ge 2 \cite{Riesel}. This test is now known as the Lucas-Lehmer-Riesel (LLR) primality test. In Algorithm \ref{PrimalityAlgorithm}, we present a modification of LLR which works for any odd integer NN. A probabilistic version of our algorithm runs in expected time O~(log3N)\tilde{O}(\log^3 N), and a deterministic version in expected O~(log4N)\tilde{O}(\log^4 N). We conclude with a conjecture which, if true, would imply that there exists a polynomial time algorithm for factoring integers.

Cite

@article{arxiv.1304.2314,
  title  = {A Modification of LLR},
  author = {Thomas Morrell},
  journal= {arXiv preprint arXiv:1304.2314},
  year   = {2013}
}

Comments

Withdrawn due to error

R2 v1 2026-06-21T23:55:53.928Z