P34: Calculate Euler's totient function phi(m).