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


Syntax
EulerTotient(N: INT): INT

Description
This function computes Euler's "totient" function (also sometimes called Euler's "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