没有合适的资源?快使用搜索试试~ 我知道了~
首页AKS素性检验,多项式时间确定算法
AKS素性检验,多项式时间确定算法
需积分: 11 266 浏览量
更新于2023-05-27
评论
收藏 499KB PDF 举报
众所周知,素性检验一般需要相对于输入长度为指数级的时间算法。 本论文成功运用数学知识开发出了多项式算法。
资源详情
资源评论
资源推荐

Annals of Mathematics
PRIMES Is in P
Author(s): Manindra Agrawal, Neeraj Kayal and Nitin Saxena
Source:
Annals of Mathematics,
Second Series, Vol. 160, No. 2 (Sep., 2004), pp. 781-793
Published by: Annals of Mathematics
Stable URL: http://www.jstor.org/stable/3597229
Accessed: 27-12-2017 01:11 UTC
REFERENCES
Linked references are available on JSTOR for this article:
http://www.jstor.org/stable/3597229?seq=1&cid=pdf-reference#references_tab_contents
You may need to log in to JSTOR to access the linked references.
JSTOR is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide
range of content in a trusted digital archive. We use information technology and tools to increase productivity and
facilitate new forms of scholarship. For more information about JSTOR, please contact support@jstor.org.
Your use of the JSTOR archive indicates your acceptance of the Terms & Conditions of Use, available at
http://about.jstor.org/terms
Annals of Mathematics
is collaborating with JSTOR to digitize, preserve and extend access to
Annals of Mathematics
This content downloaded from 162.105.94.234 on Wed, 27 Dec 2017 01:11:47 UTC
All use subject to http://about.jstor.org/terms

Annals of Mathematics, 160 (2004), 781-793
PRIMES is in P
By MANINDRA AGRAWAL, NEERAJ KAYAL, and NITIN SAXENA*
Abstract
We present an unconditional deterministic polynomial-time algorithm that
determines whether an input number is prime or composite.
1. Introduction
Prime numbers are of fundamental importance in mathematics in general,
and number theory in particular. So it is of great interest to study different
properties of prime numbers. Of special interest are those properties that
allow one to determine efficiently if a number is prime. Such efficient tests are
also useful in practice: a number of cryptographic protocols need large prime
numbers.
Let PRIMES denote the set of all prime numbers. The definition of prime
numbers already gives a way of determining if a number n is in PRIMES: try
dividing n by every number m < v/n-if any m divides n then it is compos-
ite, otherwise it is prime. This test was known since the time of the ancient
Greeks-it is a specialization of the Sieve of Eratosthenes (ca. 240 BC) that
generates all primes less than n. The test, however, is inefficient: it takes
Q(x/n) steps to determine if n is prime. An efficient test should need only a
polynomial (in the size of the input = [log ni) number of steps. A property
that almost gives an efficient test is Fermat's Little Theorem: for any prime
number p, and any number a not divisible by p, aP-1 = 1 (mod p). Given an
a and n it can be efficiently checked if an-1 = 1 (mod n) by using repeated
squaring to compute the (n - 1)th power of a. However, it is not a correct
test since many composites n also satisfy it for some a's (all a's in case of
Carmichael numbers [Car]). Nevertheless, Fermat's Little Theorem became
the basis for many efficient primality tests.
Since the beginning of complexity theory in the 1960s-when the notions
of complexity were formalized and various complexity classes were defined-
*The last two authors were partially supported by MHRD grant MHRD-CSE-20010018.
This content downloaded from 162.105.94.234 on Wed, 27 Dec 2017 01:11:47 UTC
All use subject to http://about.jstor.org/terms

MANINDRA AGRAWAL, NEERAJ KAYAL, AND NITIN SAXENA
this problem (referred to as the primality testing problem) has been investi-
gated intensively. It is trivial to see that the problem is in the class co-NP: if n
is not prime it has an easily verifiable short certificate, viz., a nontrivial factor
of n. In 1974, Pratt observed that the problem is in the class NP too [Pra]
(thus putting it in NP n co-NP).
In 1975, Miller [Mil] used a property based on Fermat's Little Theorem to
obtain a deterministic polynomial-time algorithm for primality testing assum-
ing the Extended Riemann Hypothesis (ERH). Soon afterwards, his test was
modified by Rabin [Rab] to yield an unconditional but randomized polynomial-
time algorithm. Independently, Solovay and Strassen [SS] obtained, in 1974,
a different randomized polynomial-time algorithm using the property that for
a prime n, (a) = a 2 (mod n) for every a ((-) is the Jacobi symbol). Their
algorithm can also be made deterministic under ERH. Since then, a number
of randomized polynomial-time algorithms have been proposed for primality
testing, based on many different properties.
In 1983, Adleman, Pomerance, and Rumely achieved a major break-
through by giving a deterministic algorithm for primality that runs in
(log n)(l1°gl°gl°gn) time (all the previous deterministic algorithms required ex-
ponential time). Their algorithm was (in a sense) a generalization of Miller's
idea and used higher reciprocity laws. In 1986, Goldwasser and Kilian [GK]
proposed a randomized algorithm based on elliptic curves running in expected
polynomial-time, on almost all inputs (all inputs under a widely believed hy-
pothesis), that produces an easily verifiable short certificate for primality (un-
til then, all randomized algorithms produced certificates for compositeness
only). Based on their ideas, a similar algorithm was developed by Atkin [Atk].
Adleman and Huang [AH] modified the Goldwasser-Kilian algorithm to obtain
a randomized algorithm that runs in expected polynomial-time on all inputs.
The ultimate goal of this line of research has been, of course, to obtain an
unconditional deterministic polynomial-time algorithm for primality testing.
Despite the impressive progress made so far, this goal has remained elusive.
In this paper, we achieve this. We give a deterministic, O'(log15/2 n) time
algorithm for testing if a number is prime. Heuristically, our algorithm does
better: under a widely believed conjecture on the density of Sophie Germain
primes (primes p such that 2p + 1 is also prime), the algorithm takes only
O0 (log6 n) steps. Our algorithm is based on a generalization of Fermat's Little
Theorem to polynomial rings over finite fields. Notably, the correctness proof
of our algorithm requires only simple tools of algebra (except for appealing
to a sieve theory result on the density of primes p with p - 1 having a large
prime factor-and even this is not needed for proving a weaker time bound of
O (log21/2 n) for the algorithm). In contrast, the correctness proofs of earlier
algorithms producing a certificate for primality [APR], [GK], [Atk] are much
more complex.
782
This content downloaded from 162.105.94.234 on Wed, 27 Dec 2017 01:11:47 UTC
All use subject to http://about.jstor.org/terms
剩余13页未读,继续阅读




安全验证
文档复制为VIP权益,开通VIP直接复制

评论0