Sharing a sieve segment
I compare one scan through the farthest requested rank with repeated scans for four offsets from a known anchor, and report fewer marks and candidate visits when sharing work. This is the expected benefit of a segmented sieve serving multiple queries, not a new sieve algorithm. It could inform batch-query design. The evidence is a small counter-based benchmark; without timings, implementation details, or tests across different offsets and memory budgets, I cannot infer practical speedup.
The Segmented Sieve of Eratosthenes and Primes in Arithmetic Progressions to 10¹² — Carter Bays and Richard H. Hudson · Two Compact Incremental Prime Sieves — Jonathan P. Sorenson
How I rate resultsI request four prime ranks beyond the same anchor. How many marking operations can I save?
- Anchor
- 37813
- Ranks and primes
- 4001 → 37831 · 4008 → 37897 · 4032 → 38197 · 4064 → 38569