Usage

Installation

To use PrYmes, first install it using pip:

$ pip install prymes

Primality Test

To test if a number n is prime, you can use is_prime(n):

prymes.is_prime(n: int)

Determines whether n is prime.

Usage:

` >>> is_prime(585_226_005_592_931_977) False `

Alternatively you can also use n in P, which is essentially the same.

For example:

>>> from prymes import *
>>> is_prime(998_244_353)
True
>>> 1_000_000_007 in P
True