Skip to main content
Log in

On a Combined Primality Test

  • Published:
Russian Mathematics Aims and scope Submit manuscript

Abstract

A new combined primality test for natural numbers consisting of the Lucas test and checking Fermat’s condition \({{2}^{{n - 1}}} \equiv 1\,(\bmod n)\) is studied. We call this procedure an L2 test. Composite numbers passing the L2 test are called L2 pseudoprimes. We give a description of a new effective algorithm for searching for L2 pseudoprimes; using it, we show that there is no L2 pseudoprime \(n\) of a special form \(n \equiv \pm 2\,(\bmod 5)\) less \(B = {{10}^{{23}}}\) (this border has been reached to date and is constantly increasing). Thus, the L2 test is a deterministic test that allows one to determine the primality of natural numbers \(n \equiv \pm 2\,(\bmod 5)\) at least up to \({{10}^{{23}}}\) using only two iterations, each of which has a computational complexity of \(O({{\ln }^{3}}n)\).

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

REFERENCES

  1. W. R. Alford, A. Granville, and C. Pomerance, “There are infinitely many Carmichael numbers,” Ann. Math. 139, 703–722 (1994). https://doi.org/10.2307/2118576

    Article  MathSciNet  MATH  Google Scholar 

  2. R. Crandall and C. Pomerance, Prime Numbers: A Computational Perspective (Springer, New York, 2005). https://doi.org/10.1007/0-387-28979-8

    Book  MATH  Google Scholar 

  3. Sh. T. Ishmukhametov, R. G. Rubtsova, and R. R. Khusnutdinov, “A new primality test for natural integers,” Russ. Math. 66, 70–73 (2022). https://doi.org/10.3103/S1066369X22020049

    Article  MATH  Google Scholar 

  4. S. Ishmukhametov, N. Antonov, and B. Mubarakov, A New Primality Test Constructed As a Combination of Miller–Rabin and Lucas Algorithms (MDPI Special Ed.), in press.

  5. Computational complexity of mathematical operations, Wikipedia. https://en.wikipedia.org/wiki/Computational_complexity_of_mathematical_operations.

Download references

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to S. T. Ishmukhametov, N. A. Antonov, B. G. Mubarakov or R. G. Rubtsova.

Ethics declarations

The authors declare that they have no conflicts of interest.

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Ishmukhametov, S.T., Antonov, N.A., Mubarakov, B.G. et al. On a Combined Primality Test. Russ Math. 66, 112–117 (2022). https://doi.org/10.3103/S1066369X22120088

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.3103/S1066369X22120088

Keywords:

Navigation