FLINT3.7.0-dev

compute_factor_base

Synopsis#include <flint/qsieve.h>
prime_t * compute_factor_base(ulong * small_factor, qs_t qs_inf, slong num_primes)source

Extends the factor base to num_primes primes: the multiplier, 2, and the primes pp for which knkn is a nonzero square modulo pp, with their inverses and the square roots of knkn modulo pp. If a prime dividing nn is met, it is stored in small_factor and the extension stops. Returns the factor base.

Cite this page

The FLINT team, “compute_factor_base (qsieve.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/qsieve/compute_factor_base.html (generated 2026-11-02).