Number Theory#
Usage#
import mathematics.number_theory
Primes#
number_theory.primes contains all of the primality testing.
>>> number_theory.primes.is_prime(1000)
False
>>> number_theory.primes.is_prime(29)
True
import mathematics.number_theory
number_theory.primes contains all of the primality testing.
>>> number_theory.primes.is_prime(1000)
False
>>> number_theory.primes.is_prime(29)
True