Posted on Leave a comment

Prime

let i = 2, n;
while(n%i!==0&&i<=√n) i++;
if(i>√n) n∈P;

Leave a Reply

Your email address will not be published. Required fields are marked *