Solutions to Project Euler problems