Miller–Rabin primality test: Difference between revisions

Content added Content deleted
(Posting a version of Miller-Rabin expressed in the language Mercury)
m (Removed reference to Erlang because the Erlang version is too different, whereas the Prolog version was the model used.)
Line 1,883: Line 1,883:
<lang Mercury>
<lang Mercury>
These were compiled using Mercury 14.01.1 and are adapted from
These were compiled using Mercury 14.01.1 and are adapted from
the Erlang and Prolog versions on this page.
the Prolog version on this page.
%----------------------------------------------------------------------%
%----------------------------------------------------------------------%
:- module primality.
:- module primality.