99 Elm Problems/Problem 34

Calculate Euler's totient function phi(m). Euler's so-called totient function phi(m) is defined as the number of positive integers r (1 <= r < m) that are coprime to m.

# # # THIS IS A STUB # # #

Example in Elm:

Result:

Solutions