Adhoc
Chinese reminder theorem (slow)
Brute force
Brute force (remove unused codes)
Calculus
Euler Phi summation algorithm