|
-
May 15th, 2009, 02:45 AM
#4
Re: Miller Rabin Primality Test Wrong Result
What exactly is ComputeExponentation and the modular version doing?
The ComputeExponentation raise a base number to power of exponent and the modulus version does % after the compute exponentiation.
Sample Input
2
3
5
6
7
Sample Output
Prime
Prime
Prime
Composite
Prime
Thanks.
Thanks for your help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|