Solutions to a few problems from Project Euler