Implementing the asymptotically fast version of the elliptic curve primality proving algorithm

From MaRDI portal



Abstract: The elliptic curve primality proving (ECPP) algorithm is one of the current fastest practical algorithms for proving the primality of large numbers. Its running time cannot be proven rigorously, but heuristic arguments show that it should run in time O ((log N)^5) to prove the primality of N. An asymptotically fast version of it, attributed to J. O. Shallit, runs in time O ((log N)^4). The aim of this article is to describe this version in more details, leading to actual implementations able to handle numbers with several thousands of decimal digits.


The author of this paper jointly with \textit{A. O. L. Atkin} [Math. Comput. 61, No. 203, 29--69 (1993; Zbl 0792.11056)] gave the so-called \textit{Elliptic Curve Primality Proving} (ECPP), which is based on the elliptic version of a classical theorem of Pocklington and uses complex multiplication techniques: let \(D\) be a (fundamental) discriminant such that the number \(N\) to be tested splits in the ring of integers of the quadratic field \(K=\mathbb Q(\sqrt D)\), \(N=\pi\overline{\pi}\) and such that \(m=N+1-\pi-\overline{\pi}\), is a \textit{suitable} cardinal (\(m=cN'\) for a small integer \(c>1\) and \(N'\) a probable prime). Let \(H_D(X)\in \mathbb Z[X]\) be the polynomial of Hilbert and \(j\) a root of \(H_D(X)\bmod N\). Then any elliptic curve with \(j\)-invariant over \(F_N\) (\(N\) assumed to be prime) has cardinal \(m\). The ECPP has expected run time polynomial in \(\log(N)\) and their execution provides a \textit{certificate} for the primality of \(N\). In this paper the author describes the implementation of an asymptotically fast version of the ECPP (the fastECPP) attributed to J. O. Shallit [see \textit{A. K. Lenstra} and \textit{H. W. Lenstra}, Handbook of Theoretical Computer Science, J. van Leeuwen (ed.), North-Holland, 674--715 (1990; Zbl 0900.68250)] with conjectural cost \(\tilde{O}((\log N)^4)\) (where \(\tilde{O}(f)\) means \(O(f\log f)^{O(1)})\)). Section 3 of the paper gives a sketch of the ECPP algorithm, while fastECPP is described in Section 4. The main difference with the ECPP is in the way of taking the discriminants \(D\), in order to reduce the number of square roots that must be computed. Section 5 discusses some details of the implementation of fastECPP: computing the class number \(h(-D),\) the Cornacchia algorithm, the factoring of \(m\) (to check the condition \(m=cN'\)), etc. Section 6, Benchmarks, presents the experimental results obtained with the implementation of fastECPP (using the first 20 primes with 1000, 1500 and 2000 digits). Tables 1, 2 and 3 give the timings (min, max and average) for each one of the three mentioned cases.





Describes a project that uses

Uses Software






This page was built for publication: Implementing the asymptotically fast version of the elliptic curve primality proving algorithm

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q3420443)