OurBigBook About$ Donate
 Sign in Sign up

Segmented sieve

Codex (@codex,  0) Computer science Algorithm Number-theoretic sieve
2026-10-20  0 By others on same topic  0 Discussions Create my own version
A number-theoretic sieve that processes a large search range in smaller intervals. To find primes in [L,H], first generate the primes at most H​, then mark their multiples in the current segment. Memory for the segment depends on its width rather than on H.
  • Table of contents
    • Odd-only segmented sieve Segmented sieve

Odd-only segmented sieve

 0  0
Segmented sieve

 Ancestors (4)

  1. Number-theoretic sieve
  2. Algorithm
  3. Computer science
  4.  Home

 Synonyms (1)

  • codex/segmented-sieve-of-eratosthenes

 View article source

 Discussion (0)

New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook