Skip to main content

Testing Mersenne Primes with Elliptic Curves

  • Conference paper

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 4194))

Abstract

The current primality test in use for Mersenne primes continues to be the Lucas-Lehmer test, invented by Lucas in 1876 and proved by Lehmer in 1935. In this paper, a practical approach to an elliptic curve test of Gross for Mersenne primes, is discussed and analyzed. The most important advantage of the test is that, unlike the Lucas-Lehmer test which requires \({\cal O}(p)\) arithmetic operations and \({\cal O}(p^3)\) bit operations in order to determine whether or not M p =2p–1 is prime, it only needs \({\cal O}(\lambda)\) arithmetic operations and \({\cal O}(\lambda^3)\) bit operations, with λp. Hence it is more efficient than the Lucas-Lehmer test, but is still as simple, elegant and practical.

The authors would like to thank Prof Benedict Gross of the Department of Mathematics at Harvard University for his advice to work on the computational aspects of the elliptic curve test for Mersenne primes. This paper was written while the first author visited the Dept of Computer Science at the University of Toronto hosted by Prof Stephen Cook and supported by the Royal Society London.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Atkin, A.O.L., Morain, F.: Elliptic Curves and Primality Proving. Mathematics of Computation 61, 29–68 (1993)

    Article  MATH  MathSciNet  Google Scholar 

  2. Brent, R.P., Cohen, G.L., te Riele, H.J.J.: Improved Techniques for Lower Bounds for Odd Perfect Numbers. Mathematics of Computation 57, 857–868 (1991)

    Article  MATH  MathSciNet  Google Scholar 

  3. Gross, B.H.: An Elliptic Curve Test for Mersenne Primes. Journal of Number Theory 110, 114–119 (2005)

    Article  MATH  MathSciNet  Google Scholar 

  4. Koblitz, N.: Elliptic Curve Cryptography. Mathematics of Computation 48, 203–209 (1987)

    Article  MATH  MathSciNet  Google Scholar 

  5. Lang, S.: Fundamentals of Dionphtine Geometry. Springer, Heidelberg (1983)

    Google Scholar 

  6. Lehmer, D.H.: On Lucas’s Test for the Primality of Mersenne’s Numbers. Journal of London Mathematical Society 10, 162–165 (1935)

    Article  MATH  Google Scholar 

  7. Lenstra Jr., H.W.: Factoring Integers with Elliptic Curves. Annals of Mathematics 126, 649–673 (1987)

    Article  MathSciNet  Google Scholar 

  8. Lucas, E.: Noveaux Théorèmes d’Arithmétique Supèrieure. C. R. Acad. Sci. Paris 83, 1286–1288 (1876)

    Google Scholar 

  9. Miller, V.: Uses of Elliptic Curves in Cryptography. In: Williams, H.C. (ed.) CRYPTO 1985. LNCS, vol. 218, pp. 417–426. Springer, Heidelberg (1986)

    Google Scholar 

  10. Morain, F.: Implementing the Asymptotically Fast Version of the Elliptic Curve Primality Proving Algorithm (October 21, 2005), See: http://www.lix.polytechnique.fr/~morain/Articles/fastecpp-final.pdf

  11. Rosen, M.: A Proof of the Lucase-Lehmer Test. American Mathematics Monthly 95, 855–856 (1988)

    Article  MATH  Google Scholar 

  12. Silverman, J.H.: The Arithmetic of Elliptic Curves. Graduate Texts in Mathematics, vol. 106. Springer, Heidelberg (1994)

    MATH  Google Scholar 

  13. Wiles, A.: Modular Elliptic Curves and Fermat’s Last Theorem. Annals of Mathematics 141, 443–551 (1995)

    Google Scholar 

  14. Yan, S.Y.: Number Theory for Computing, 2nd edn. Springer, Heidelberg (2002)

    MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2006 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Yan, S.Y., James, G. (2006). Testing Mersenne Primes with Elliptic Curves. In: Ganzha, V.G., Mayr, E.W., Vorozhtsov, E.V. (eds) Computer Algebra in Scientific Computing. CASC 2006. Lecture Notes in Computer Science, vol 4194. Springer, Berlin, Heidelberg. https://doi.org/10.1007/11870814_27

Download citation

  • DOI: https://doi.org/10.1007/11870814_27

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-45182-2

  • Online ISBN: 978-3-540-45195-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics