Solving problems from Project Euler