Question 476631: weather 287,1369 and 2511 are primes or not?
Answer by stanbon(75887) (Show Source):
You can put this solution on YOUR website! wheather 287,1369 and 2511 are primes or not?
--------
Example
sqrt(2511) = 50.11..
So you only need to check division of
2511 by primes that are less than 50
--
Those primes are 47,43,41,37,31,...etc
I tried those and found 2511 = 31*81
--
So 2511 is not prime.
=======================
Cheers,
Stan H.
==========
|
|
|