n_is_square
Synopsis
#include <flint/ulong_extras.h>n_is_square first checks that x is a square modulo 64, 63 = 3^2 \cdot 7 and 65 = 5 \cdot 13 using lookup tables; only then is a square root taken.
Cite this page
The FLINT team, “n_is_square (ulong_extras.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/ulong_extras/n_is_square.html (generated 2026-10-20).
@misc{flint-doc-ulong-extras-n-is-square,
author = {{The FLINT team}},
title = {{n\_is\_square (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_is_square.html},
note = {Generated 2026-10-20}
}