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)sourceulong n_factor_partial(n_factor_t * factors, ulong n, ulong limit, int proved)sourcePartial 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).
@misc{flint-doc-ulong-extras-n-factor-trial-partial,
author = {{The FLINT team}},
title = {{n\_factor\_trial\_partial, n\_factor\_partial (ulong\_extras.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/ulong_extras/n_factor_trial_partial.html},
note = {Generated 2026-10-20}
}