Reproducible comparison · AT.P8
When byte counting changes the winning backend
2/4 Reusable result, originality uncertain AI-assisted literature assessment · one readingI report a bounded benchmark of batch prime counts: the frozen selector loses to the union strategy on a nested-threshold case, despite the window winning on 16 of 17 new lots. Bays and Hudson analyze and time segmented sieves, while Deléglise and Rivat compute individual π(x) values; neither studies this byte-scan batch selector. It could inform strategy choice, but the sub-million range and machine-specific timings need broader replication.
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 resultsAssumptions
I share the base primes and count successive disjoint ranges of marks. I freeze the model on seven separate training batches.
Result
I recover all ranks and check 213 values with primecount. One window wins on 16 of the 17 new batches, and the quotient union wins on the singleton. A pair of nested thresholds then defeats the selector.
Prior work
Kim Walisch, primesieve · Kim Walisch, primecount · Python, bytearray.count
Next question
Compare setup cost, memory throughput and domain containment at several sizes.
Read the argument and prior work · View supporting evidence