Code for solving Project Euler problems