On the complexity of computing prime tables

From MaRDI portal



Abstract: Many large arithmetic computations rely on tables of all primes less than n. For example, the fastest algorithms for computing n! takes time O(M(nlogn)+P(n)), where M(n) is the time to multiply two n-bit numbers, and P(n) is the time to compute a prime table up to n. The fastest algorithm to compute also uses a prime table. We show that it takes time O(M(n)+P(n)). In various models, the best bound on P(n) is greater than M(nlogn), given advances in the complexity of multiplication cite{Furer07,De08}. In this paper, we give two algorithms to computing prime tables and analyze their complexity on a multitape Turing machine, one of the standard models for analyzing such algorithms. These two algorithms run in time O(M(nlogn)) and O(nlog2n/loglogn), respectively. We achieve our results by speeding up Atkin's sieve. Given that the current best bound on M(n) is nlogn2O(log∗n), the second algorithm is faster and improves on the previous best algorithm by a factor of log2logn. Our fast prime-table algorithms speed up both the computation of n! and . Finally, we show that computing the factorial takes Omega(M(nlog4/7−epsilonn)) for any constant epsilon>0 assuming only multiplication is allowed.












This page was built for publication: On the complexity of computing prime tables

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