Find the nearest Prime by teebee

while(p=nextprime(n=input),print(if(p-n<n-q=precprime(n),p,q)))

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

download

return to the top page