Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 369 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 369 Bytes

miller-rabin-primality

A Python library to check primality of numbers using the Miller-Rabin Algorithm (Wikipedia).

Installation

Install using pip.

pip install miller-rabin-primality

Using

Example:

from miller_rabin_primality import is_prime

print(is_prime(53446463))