FLINT3.7.0-dev

n_factor_trial_partial, n_factor_partial

Synopsis#include <flint/ulong_extras.h>
ulong n_factor_trial_partial(n_factor_t * factors, ulong n, ulong * prod, ulong num_primes, ulong limit)source
ulong n_factor_partial(n_factor_t * factors, ulong n, ulong limit, int proved)source

Partial factorisation: like n_factor_trial and n_factor, but stop as soon as the product of the prime factors found exceeds limit. Return the cofactor; n_factor_trial_partial also sets *prod to the product of the factors found.

Cite this page

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