a和b的代码应该要在while里面
from math import sqrti=0while i<1000: a = sqrt(i + 100) b = sqrt(i + 168 + 100) if type(a) and type(b)==int: print(i) else: i+=1