Advertisement

Journal of Cryptology

, Volume 16, Issue 2, pp 117–139 | Cite as

A Probable Prime Test with Very High Confidence for n ≡ 3 mod 4

  •  Müller

Abstract. The workhorse of most compositeness tests is Miller—Rabin, which works very fast in practice, but may fail for one-quarter of all bases. We present an alternative method to decide quickly whether a large number n is composite or probably prime. Our algorithm is both based on the ideas of Pomerance, Baillie, Selfridge, and Wagstaff, and on a suitable combination of square, third, and fourth root testing conditions. A composite number n ≡ 3 mod 4 will pass our test with probability less than 1/331,000, in the worst case. For most numbers, the failure rate is even smaller. Depending on the the respective residue classes n modulo 3 and 8 , we prove a worst-case failure rate of less than 1/5,300,000, 1/480,000, and 1/331,000, respectively, for any iteration of our test. Along with some fixed precomputation, our test has running time about three times the time as for the Miller—Rabin test. Implementation can be achieved very efficiently by naive arithmetic only.

Key words. Probable prime testing, Combined test, Efficiency, Failure probability, Running time, Quadratic fields. 

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© International Association for Cryptologic Research 2003

Authors and Affiliations

  •  Müller
    • 1
  1. 1.Department of Mathematics and Statistics, University of Calgary, 2500 University Dr. N.W., Calgary, Alberta, Canada T2N 1N4 smueller@math.ucalgary.caCA

Personalised recommendations