Solving Project Euler's problems