Phi Euler Euler's totient function counts the positive integers up to a given integer that are relatively prime to . Formally, it can be defined as the number of integers in the range for which . Euler's product formula states For a prime number and for an integer , this expression reduces to Syntax phi_euler(Integer) Description phi_euler(Integer) Given an integer , returns . Related functions Prime, Prime? Table of Contents Syntax Description Related functions