Solving project Euler problems