Simple program to run Miller Rabin Primality test.
Just import it from interpreter and run the function is_prime
.
is_prime(n, num_trials)
checks if n
is a prime in num_trials
trials,
resulting in 1-(0.25^num_trials
) probability of guessing correctly.
-
Notifications
You must be signed in to change notification settings - Fork 0
jinsooihm/miller-rabin-primality-test
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple program to run Miller-Rabin primality test
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published