Miller–Rabin primality test: Difference between revisions

→‎{{header|Python}}: Sectioned as "Probably correct answers"
(Add Seed7 example)
(→‎{{header|Python}}: Sectioned as "Probably correct answers")
Line 1,833:
 
=={{header|Python}}==
===Python: Probably correct answers===
This versions will give answers with a very small probability of being false. That probability being dependent on _mrpt_num_trials and the random numbers used for name <code>a</code> passed to function try_composite.
 
<lang python>import random
 
Anonymous user