Question 1027857: What is the greatest prime that must be concidered to test whether 671 is prime? Found 2 solutions by ikleyn, Alan3354:Answer by ikleyn(52834) (Show Source):
You can put this solution on YOUR website! .
What is the greatest prime that must be considered to test whether 671 is prime?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can put this solution on YOUR website! What is the greatest prime that must be concidered to test whether 671 is prime?
-----------------
It depends on your method.
If you test primes in order, you'll find that 11 is a factor, leaving 61 (671 = 11*61).
-------
Then checking 61 requires testing to INT(sqrt(61)) = 7
====================