计算机科学 > 数据结构与算法
[提交于 2024年6月13日]
标题:Reducing the Space Used by the Sieve of Eratosthenes When Factoring
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Jonathan Sorenson[v1] 2024年6月13日 星期四 14:16:14 UTC