Enumerating the First Primes in Deterministic Time
Abstract
We give a deterministic word-RAM algorithm that lists the primes up to in increasing order in worst-case time. Consequently, the first primes can be generated in total time, with worst-case delay between outputs for a requested using algorithm-owned buffers. The algorithm starts from Harvey's parity formula for prime enumeration and computes a packed linear syndrome for each small block rather than the full output of the convolutions. Exact prime counts at large-block boundaries certify the sparse decodings and detect the few large blocks in which sparse recovery fails, allowing those blocks to be recomputed directly without locating individual errors.
Create a lesson
Related papers
Deterministic Exact Matching in Subexponential Time
Shared title terminologycs.DSDave Goel
Polynomial-Time Generalized Sorting via Compressed Error Isolation
Shared title terminologycs.DSBrendan Mumey
Subexponential-Time Algorithms for k-Set Cover and Hamiltonicity via Containers
Shared title terminologycs.DSTomohiro Koana, Soh Kumabe, Jesper Nederlof
Optimal Guarantees for Online Bipartite Matching under Arrival-Time Incentive Compatibility
Shared title terminologycs.DSArghya Chakraborty, Varun Gupta
Expected-Case Behavior of Greedy Best First Search
Shared title terminologycs.DSMasataro Asai
Graph Minor Decomposition in Almost-Linear Time
Shared title terminologycs.DSMohammadTaghi Hajiaghayi, Mahdi JafariRaviz