WORKED DEFAULT
Check the calculation with the default inputs
For n = 36, the distinct prime factors are 2 and 3. Starting at 36 gives 36 x (1 - 1/2) x (1 - 1/3) = 12, so phi(36) = 12.
- Factor the integer36 = 2^2 x 3^2
- Keep distinct primesp = 2 and 3
- Apply the product36 x 1/2 x 2/3 = 12