Skip to content

EulerPhi

Returns Euler's totient function (count of integers up to n that are coprime to n).

$ wo 'EulerPhi[1]'
1
$ wo 'EulerPhi[10]'
4
$ wo 'EulerPhi[12]'
4
$ wo 'EulerPhi[7]'
6