FLINT3.7.0-dev

n_euler_phi

Synopsis#include <flint/ulong_extras.h>
ulong n_euler_phi(ulong n)source

Returns Euler's totient \varphi(n), the number of 1 \le k \le n coprime to n.

Cite this page

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