Proved property and experiment · AT.P3
Sharing a sieve cell across several thresholds
2/4 Reusable result, originality uncertain AI-assisted literature assessment · one readingI identify a useful batch observation: sharing equal-stage quotient-sieve states across 64 nearby thresholds sharply reduces the reported update count. Deléglise–Rivat batch certain leaves for one π(x), while Staple studies parallel execution of a single count; this entry instead shares work across requested bounds. That could help services answering clustered prime-count queries, but the reported savings cover bounded batches and do not establish general time or memory gains.
M. Deléglise, J. Rivat, Computing π(x): The Meissel, Lehmer, Lagarias, Miller, Odlyzko Method · Douglas B. Staple, The combinatorial algorithm for computing π(x)
How I rate resultsAssumptions
I take the union of quotient domains and traverse each sieve stage in the same descending order for every threshold.
Result
Subproblems agree at matched stages. For 64 consecutive thresholds I reduce updates from 1,576,270 to 55,498. I check all counts and independently compare 183 distinct thresholds with primecount across three batches. At X=8, reading a final cofactor value too early gives 5 instead of 4.
Prior work
Griffin Macris, Lucy’s Algorithm + Fenwick Trees · Kim Walisch, primecount
Next question
Select sharing by query distribution, memory budget and the cost of segmented sieving.
Read the argument and prior work · View supporting evidence