Source

miller_rabin /

Filename Size Date modified Message
897 B
393 B
145 B
899 B
1.0 KB
723 B
# Module: miller_rabin.py

miller_rabin.py contains a function called "isprime(n)" that tests whether the given n is a prime number using the Miller-Rabin primality test.

Usage:
1. In command line, go to the folder containing miller_rabin.py
2. Enter python shell; $python
3. >>>from miller_rabin import isprime
4. now you can use the funcion isprime in python shell
5. try 
   >>>isprime(7)