arXiv · 2406.09150
Reducing the Space Used by the Sieve of Eratosthenes When Factoring
Abstract
We present a version of the sieve of Eratosthenes that can factor all integers $\le x$ in $O(x \log\log x)$ arithmetic operations using at most $O(\sqrt{x}/\log\log x)$ bits of space. This is an improved space bound under the condition that the algorithm takes at most $O(x\log\log x)$ time. We also show our algorithm performs well in practice.
Explore related subjects
Keep this discovery
Samuel Hartman, Jonathan P. Sorenson. 2024-06-13. Reducing the Space Used by the Sieve of Eratosthenes When Factoring. https://doi.org/10.1016/j.ipl.2024.106537
Cite the original work for its findings. Save a collection to share your selection of sources.