Solving Project Euler problems