FLINT3.7.0-dev

fmpz_primorial

Synopsis#include <flint/fmpz.h>
void fmpz_primorial(fmpz_t res, ulong n)source

Sets res to the primorial n\#, the product of the primes p \le n, by a balanced product tree over word-size factors.

Cite this page

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