Update Euler's phi function