Symmetry · 2020 · 13 citations · 9 references
Natural SciencesComputer ScienceMathematicsNumber TheoryProbability TheoryTheory Of ComputationComputational Number TheoryNumber-theoretic AlgorithmsEuler's TheoremEuler's Totient FunctionMiller TestMiller-rabin Primality TestPrimality Testing
In this paper, we investigate the popular Miller–Rabin primality test and study its effectiveness. The ability of the test to determine prime integers is based on the difference of the number of primality witnesses for composite and prime integers. Let W ( n ) denote the set of all primality witnesses for odd n. By Rabin’s theorem, if n is prime, then each positive integer a < n is a primality witness for n. For composite n, the power of W ( n ) is less than or equal to φ ( n ) / 4 where φ ( n ) is Euler’s Totient function. We derive new exact formulas for the power of W ( n ) depending on the number of factors of tested integers. In addition, we study the average probability of errors in the Miller–Rabin test and show that it decreases when the length of tested integers increases. This allows us to reduce estimations for the probability of the Miller–Rabin test errors and increase its efficiency.
9
Probabilistic algorithm for testing primality
Michael O. Rabin · Journal of Number Theory · 1980 · 867 citations
Riemann's hypothesis and tests for primality
Gary L. Miller · Journal of Computer and System Sciences · 1976 · 717 citations
Finding strong pseudoprimes to several bases
Zhenxiang Zhang · Mathematics of Computation · 2000 · 25 citations · Full text