Talk:Miller–Rabin primality test: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 29:
power(X, N) ->
power(X, N, 1).
 
power(X, N, Acc) ->
if
Line 39 ⟶ 38:
Js = lists:seq(0, S),
lists:map(fun(J) -> pow_mod(A, power:power(2, J)*D, N) end, Js).
 
 
pow_mod(B, E, M) ->
Anonymous user