Solving Project Euler questions