solve ProjectEuler by python