Project_Euler_12 working but very slow.