Solutions to the Project Euler questions