Solutions to project Euler problems