On the effectiveness of a generalization of Miller's primality theorem

Berrizbeitia and Olivieri showed in a recent paper that, for any integer r, the notion of @w-prime to base a leads to a primality test for numbers n=1 mod r, that under the Extended Riemann Hypothesis (ERH) runs in polynomial time. They showed that the complexity of their test is at most the complexity of the Miller primality test (MPT), which is O((logn)^4^+^o^(^1^)). They conjectured that their test is more effective than the MPT if r is large. In this paper, we show that their conjecture is not true by showing that the Berrizbeitia-Olivieri primality test (BOPT) has no advantage over the MPT, either for proving primality of a prime under the ERH, or for detecting compositeness of a composite. In particular, we point out that the complexity of the BOPT depends not only on n but also on r and that in the worst cases (usually when n is prime) for both tests, the BOPT is in general at least twice slower than the MPT, and in some cases (usually when n is composite) the BOPT may be much slower. Moreover, the BOPT needs O(rlogn) bit memories. We also give facts and numerical examples to show that, for some composites n and for some r, the rth roots of unity @w do not exist, and thus outputs of the BOPT are ERH conditional, whereas the MPT always quickly and definitely (without ERH) detects compositeness for all odd composites.

[1]  R. Pinch The Carmichael Numbers up to 10 15 , 1993, math/0604376.

[2]  G. Jaeschke On strong pseudoprimes to several bases , 1993 .

[3]  Zhenxiang Zhang,et al.  A one-parameter quadratic-base version of the Baillie-PSW probable prime test , 2002, Math. Comput..

[4]  Manindra Agrawal,et al.  PRIMES is in P , 2004 .

[5]  C. Pomerance,et al.  Prime Numbers: A Computational Perspective , 2002 .

[6]  Zhenxiang Zhang Finding strong pseudoprimes to several bases , 2001, Math. Comput..

[7]  Louis Monier,et al.  Evaluation and Comparison of Two Efficient Probabilistic Primality Testing Algorithms , 1980, Theor. Comput. Sci..

[8]  G. Ziegler The Great Prime Number Record Races , 2004 .

[9]  C. Pomerance,et al.  There are infinitely many Carmichael numbers , 1994 .

[10]  Min Tang,et al.  Finding strong pseudoprimes to several bases II , 2003, Math. Comput..

[11]  Gary L. Miller Riemann's Hypothesis and Tests for Primality , 1976, J. Comput. Syst. Sci..

[12]  Zhenxiang Zhang,et al.  Two kinds of strong pseudoprimes up to 1036 , 2007, Math. Comput..

[13]  Jerzy Browkin Some new kinds of pseudoprimes , 2004, Math. Comput..

[14]  Kazuya Kato,et al.  Number Theory 1 , 1999 .

[15]  Carl Pomerance,et al.  The pseudoprimes to 25⋅10⁹ , 1980 .

[16]  Pedro Berrizbeitia,et al.  A generalization of Miller’s primality theorem , 2008 .

[17]  E. Bach Analytic methods in the analysis and design of number-theoretic algorithms , 1985 .

[18]  William Ellison,et al.  Prime numbers , 1985 .

[19]  M. Rabin Probabilistic algorithm for testing primality , 1980 .

[20]  I. Damgård,et al.  Average case error estimates for the strong probable prime test , 1993 .

[21]  Pedro Berrizbeitia,et al.  Generalized Strong Pseudoprime Tests and Applications , 2000, J. Symb. Comput..

[22]  E. Bach Explicit bounds for primality testing and related problems , 1990 .

[23]  Elias M. Stein,et al.  Models of degenerate Fourier integral operators and Radon transforms , 1994 .

[24]  Zhenxiang Zhang,et al.  Finding C3-strong pseudoprimes , 2004, Math. Comput..

[25]  Zhenxiang Zhang Notes on some new kinds of pseudoprimes , 2006, Math. Comput..