Miller–Rabin primality test: Difference between revisions

m
(Add OCaml implementation)
Line 3,553:
=={{Header|OCaml}}==
 
A direct translation of the wikipedia pseudocode (with <tt>get_rd</tt> helper function translated from <tt>split</tt> in the scheme implementation). This code uses the Zarith and Bigint (bignum) libraries.
 
<lang OCaml>
Anonymous user