Euler's totient function

Home > Mathematics > Number theory > Relative primes (coprimes) > Euler's totient function

A function that returns the number of positive integers that are less than or equal to a given integer and are relatively prime to it.