Nth prime by nn

i;a['N '];main(p,v){for(;v=(v*v>p?a[++i]=p,0:p%++v)?v:p++<2e5||gets(&v)&&printf("%d\n",a[atoi()]););}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page