Solutions to Project Euler questions