Euler 1 new solution using python