FLINT3.7.0-dev

flint_mpn_factor_pollard_brent_single

Synopsis#include <flint/fmpz_factor.h>
int flint_mpn_factor_pollard_brent_single(nn_ptr factor, nn_ptr n, nn_ptr ninv, nn_ptr a, nn_ptr y, ulong n_size, ulong normbits, ulong max_iters)source

The limb-level implementation of fmpz_factor_pollard_brent_single, in the shifted representation, for \mathit{n\_size} \ge 2 limbs. GCDs are taken once every 100 iterations on the accumulated product of the differences, with backtracking if the product becomes 0 \bmod n. Returns the number of limbs of the (shifted) factor, or 0.

Cite this page

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