LightOJ – Mathematically Hard

Problem Name: Mathematically Hard
Judge: LightOJ
Algorithms & DS: Euler Phi