for i=1,2e3 do j=i repeat loadstring("j=0"..("").gsub(j,".","+%1^2"))()until j<5 _=j>1 or print(i)end