Skip to content

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

Notifications You must be signed in to change notification settings

ChayimFriedman2/miller-rabin-primality

Repository files navigation

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))

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published