up previous next
EulerTotient    --    Euler Totient function for positive integers


Syntax
EulerTotient(N: INT): INT

Description
This function computes the Euler "totient" function (also sometimes called Euler "phi" function). The value is the number of integers from 1 to N which are coprime to N.

Example
/**/  EulerTotient(100);
40
/**/  EulerTotient(30030);
5760

See Also