http://en.wikipedia.org/wiki/AKS_primality_test


On Sun, Apr 14, 2013 at 10:46 PM, payel roy <[email protected]> wrote:

> You are to test whether a number if prime or not.
>
> Digit of that number can be as large as 1000. How do you do that?
>
> I was thinking of basic idea.
>
> a) First I shall calculate all primes which is less than the square root
> of the given number
> b) Will try to divide that given number by all this primes.
>
> Not sure how do I calculate the (a) part since number is huge.
>
> Any idea is welcome.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Regards
Bharat Singhvi
M.Tech Final Year,
Dept. of Computer Science and Engineering,
IIT Bombay.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to