Solutions to problems from Project Euler