Skip to content

isprime

Nicolás Berrios edited this page Oct 1, 2020 · 1 revision

isprime()

isprime(p: int) True if {p} is prime.

from primality import primality

primality.isprime(13)
>> True
primality.isprime(20)
>> False
primality.isprime(516349073509121311)
>> True

Clone this wiki locally