x=0 for j in range(1,151): for i in range(1,10000001): x+=1./(j*i) print x