On the complexity of computing prime tables
Martin Farach-Colton, Meng-Tsung Tsai

TL;DR
This paper presents two new algorithms for computing prime tables with improved complexity bounds, significantly enhancing the efficiency of related large arithmetic computations like factorials and binomial coefficients.
Contribution
It introduces two algorithms for prime table computation with complexities of O(M(n log n)) and O(n log^2 n / log log n), improving previous methods by speeding up Atkin's sieve.
Findings
The second algorithm outperforms previous algorithms by a factor of log^2 log n.
Fast prime tables accelerate calculations of n! and binomial coefficients.
Lower bounds on factorial computation complexity are established.
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCoding theory and cryptography · Limits and Structures in Graph Theory · semigroups and automata theory
