Atelier des rouesLab FR
Register/AT.P9
Open question · AT.P9

When do nested domains favour a quotient union?

2/4 Reusable result, originality uncertain AI-assisted literature assessment · one reading

I give a concrete counterexample to the selector: for the two divisors of 900,000, the measured union beats the selected window method. Bays and Hudson compare segmented sieve variants, and Deléglise and Rivat treat exact single-value π(x) computation; this record instead compares cold batch representations for two queried thresholds. That is a useful bounded check on the rule, not a general cost model: the result needs replication across hardware, ranges, and query patterns.

C. Bays et R. H. Hudson, The segmented sieve of Eratosthenes and primes in arithmetic progressions to 10^12 · M. Deléglise et J. Rivat, Computing π(x): The Meissel, Lehmer, Lagarias, Miller, Odlyzko Method

How I rate results

Assumptions

I fix the largest threshold at 900,000 and request integer quotients of that threshold.

Result

The model prefers one window for 450,000 and 900,000. The union wins in this challenge by reusing the largest domain.

Prior work

Kim Walisch, primesieve · Kim Walisch, primecount · Python, bytearray.count

Next question

Compare against a time- and peak-memory-aware rule at held-out maxima.

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.