Enter a number: Solve Totient Function: Euler's totient function φ(n) counts the positive integers up to n that are coprime to n (have no common factors with n other than 1).