Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualvdaras

Posted 07 December 2012 - 07:30 AM

On a side note, if an integer can't be divided by 2 then it also can't be divided by any other even number, so you can try 2 and then only try odd numbers from 3 to sqrt(x), where x the integer that you check for primality.

#1vdaras

Posted 07 December 2012 - 07:29 AM

On a side note, if an integer can't be divided by 2 then it also can't be divided by any other even number, so you can try 2 and then only try odd numbers from 3 to sqrt(x), where x the number that you check for primality.

PARTNERS