FLINT3.7.0-dev

n_primes_extend_small, n_primes_sieve_range

Synopsis#include <flint/ulong_extras.h>
void n_primes_extend_small(n_primes_t iter, ulong bound)source
void n_primes_sieve_range(n_primes_t iter, ulong a, ulong b)source

Internal helpers of the prime iterator: extend its table of small primes until the second-largest entry is at least bound, or sieve the odd numbers in [a, b] and point the iterator at the start of that block.

Cite this page

The FLINT team, “n_primes_extend_small, n_primes_sieve_range (ulong_extras.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/ulong_extras/n_primes_extend_small.html (generated 2026-10-20).