i=2;exec"j=2\nwhile i%j:j+=1\nif j**9%i<1:print i\ni+=1;"*996