Anonymous user
Miller–Rabin primality test: Difference between revisions
→{{header|Scheme}}: Small change to ow composite-witness? is phrased
(R6RS Scheme) |
(→{{header|Scheme}}: Small change to ow composite-witness? is phrased) |
||
Line 4,125:
(let*-values (((s d) (split (- n 1)))
((x) (modexpt a d n)))
(
(not (= x (- n 1)
(
(
(try (
▲ (and (not (= x (- n 1)))
;; Test whether n > 2 is a Miller-Rabin pseudoprime, k trials.
|