Skip to content

Python code implementing the Miller-Rabin primality test

Notifications You must be signed in to change notification settings

junjunwang2016/MillerRabin-2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

MillerRabin

Python code implementing the Miller-Rabin primality test

This code asks the user to imput a positive integer and the desired number of times the test will be run (as it is a probabilistic test, it will need to be run multiple times to minimize the chance of a false positive).

It has fast exponentiation included, to speed up calculations.

It prints the randomly chosen integers used for the test and a list with the large odd power and the subsequent squares that shows where the test determines a number is composite, if at all.

About

Python code implementing the Miller-Rabin primality test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%