FLINT3.7.0-dev

qsieve_square_root

Synopsis#include <flint/qsieve.h>
void qsieve_square_root(fmpz_t X, fmpz_t Y, qs_t qs_inf, uint64_t * nullrows, slong ncols, slong l, fmpz_t N)source

For the ll-th null space vector, sets YY to the product of the YY values of the relations in it and XX to the square root of the product of their factor base primes (from the halved exponent counts), both modulo N=knN = kn. Then X2≡Y2(modkn)X^2 \equiv Y^2 \pmod{kn}, and gcd⁡(X−Y,n)\gcd(X - Y, n) is a factor of nn, nontrivial with probability at least about 1/21/2 if nn is not a prime power.

Cite this page

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