Atelier des rouesLab FR
Register/AT.EX20.03
Controlled experiment · AT.EX20.03

Sharing a sieve segment

1/4 Educational or exploratory value AI-assisted literature assessment · one reading

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 results

Assumptions

I mark up to the largest requested rank and read offsets 1, 8, 32 and 64. I compare separate queries and check the prime counts at each answer and its predecessor.

Result

Beyond rank 4,000 I count 3,982 shared marks versus 6,543 separate marks and 173 visits versus 285. The saving concerns sieve work from a known anchor.

Prior work

Walisch · primesieve

Next question

I will measure the effect of rank dispersion at a fixed memory budget.

Read the argument and prior work · View supporting evidence

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.