Share corrections across adjacent prime ranks
I reuse a marked segment after a certified prime anchor to serve several consecutive prime ranks, reporting fewer candidate visits than separate searches. This is a straightforward application of segmented sieving, whose established role is to limit working storage while finding primes. The local count may help plan a small batch of nearby queries. It does not establish a faster implementation: the stated comparison excludes segment preparation, and no code, timing, or variation across anchors is supplied.
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 resultsWhich candidates can I test once for a batch of adjacent prime ranks?
- Anchor
- 37813
- Integers marked during setup
- 933
37831, 37847, 37853, 37861, 37871, 37879, 37889, 37897, 37907, 37951, 37957, 37963, 37967, 37987, 37991, 37993, 37997, 38011, 38039, 38047, 38053, 38069, 38083, 38113, 38119, 38149, 38153, 38167, 38177, 38183, 38189, 38197
Rejections and factors · 37817/13, 37819/59, 37823/109, 37829/11, 37837/157, 37841/79, 37843/13, 37859/17, 37867/19, 37873/11, 37883/43, 37901/151, 37903/29, 37909/167, 37913/31, 37921/13, 37927/17, 37931/83, 37937/59, 37939/11, 37943/19, 37949/137, 37969/43, 37973/13, 37979/163, 37981/19, 37999/13, 38009/191, 38021/193, 38023/47, 38027/11, 38029/17, 38033/73, 38041/109, 38051/13, 38057/19, 38063/17, 38071/11, 38077/13, 38081/113, 38089/41, 38093/11, 38099/31, 38107/53, 38111/23, 38117/47, 38123/67, 38131/17, 38137/11, 38141/43, 38147/37, 38159/11, 38161/31, 38173/59, 38179/73, 38191/181