Odd-only sieve (source code)

= Odd-only sieve

An odd-only sieve stores only odd candidates, handling the <prime> two separately. This reduces the candidate storage and avoids marking even composites repeatedly.