t=32416187567 print '\n'.join(str(p)for p in range(t,t+2506,2)if pow(2,p-1,p)<2)