my answer for problems on Project Euler