Project Euler 33 solved