Project Euler 5 solved