FiSGO.PrimesHandler.is_prime
- is_prime(n, primes_path='/home/docs/checkouts/readthedocs.org/user_builds/fisgo/checkouts/latest/FiSGO/PrecomputedData/BuiltinPrimes.txt')[source]
Given an integer n, returns True if it is prime and False if it is not. Refer to the documentation of
FiSGO.PrimesHandler.primes_lt()for additional information on primes_path.Note
This function is NOT a primality test algorithm, it simply checks if n is a prime number found in primes_path. This is enough for the FiSGO modules using this function.