Miller–Rabin primality test: Difference between revisions

Content added Content deleted
Line 29: Line 29:
For Number types >= 2**64 you may have to use an external library -- see below.
For Number types >= 2**64 you may have to use an external library -- see below.


First, a package Miller_Rabin is specified. The same package is used else elsewhere in Rosetta Code, such as for the [[Carmichael 3 strong pseudoprimes]].
First, a package Miller_Rabin is specified. The same package is used else elsewhere in Rosetta Code, such as for the [[Carmichael 3 strong pseudoprimes]] the [[Extensible prime generator]], and the [[Emirp primes]].


<lang Ada>generic
<lang Ada>generic