Solutions to various Project Euler problems