Solving project euler problems