Euler's problems solved using python