Jump to content

Talk:Miller–Rabin primality test: Difference between revisions

m
→‎Erlang: Needs a power function that operates using BigNums.
m (Signed)
m (→‎Erlang: Needs a power function that operates using BigNums.)
Line 16:
::It is not the absence on the task page of a function name or that the only function with the mentioned parameter names (n and k) is not doing the ''algorithm'' that is my problem, although both these things makes it more difficult. My problem is that I can not see any of the exported functions doing the task. Therefore I think that the Erlang solution might not be correct. [[User:bengt]]
 
== PythonErlang ==
 
Miller-Rabin primality test in Erlang uses a floating point power function and truncation to restore to integer. This combination begins to fall short when the integer being tested is up to approximately 90,000,000. At these large sizes, the primes found are correct but too many correct primes are not found. By 100,000,000 no primes are being found.
This task can also be handled by the [http://tnt.math.se.tmu.ac.jp/nzmath/ NZMATH] modules prime and arith1 to enable its millerRabin function.--[[User:Billymac00|Billymac00]] 02:32, 3 January 2011 (UTC)
 
== Tcl ==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.