def in_a292794(n): r, m = 1, 2 while(r <= abs(n)): if(n % m == r): return False r, m = m, r+m return True i = j = 0 while(j < 10001): if(in_a292794(i)): print(str(j) + " " + str(i)) j += 1 i += 1