Solutions to some Project Euler problems