Abstract
Many large arithmetic computations rely on tables of all primes less than . For example, the fastest algorithms for computing takes time , where is the time to multiply two -bit numbers, and is the time to compute a prime table up to . The fastest algorithm to compute also uses a prime table. We show that it takes time . In various models, the best bound on is greater than , 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 and , respectively. We achieve our results by speeding up Atkin's sieve. Given that the current best bound on is , the second algorithm is faster and improves on the previous best algorithm by a factor of . Our fast prime-table algorithms speed up both the computation of and . Finally, we show that computing the factorial takes for any constant assuming only multiplication is allowed.
Connections
Explore this paper’s authors, topics and related work.
Building this map preview
BZPEER is loading the nearby papers, people, topics and institutions for this page.
Reviews 0
Write a review
No reviews yet.
Discussion 0
Add a comment
No comments yet.