FiSGO.PrimesHandler.primes_lt_list

primes_lt_list(n, primes_path='/home/docs/checkouts/readthedocs.org/user_builds/fisgo/checkouts/latest/FiSGO/PrecomputedData/BuiltinPrimes.txt')[source]

Given an integer n, returns a list of all primes less than n in file primes_path using FiSGO.PrimesHandler.primes_lt(). Refer to the documentation of FiSGO.PrimesHandler.primes_lt() for additional information.

Parameters:
  • n (int) – Positive integer, strict upper bound for the primes to list.

  • primes_path – String, path to a file with an ordered list of prime numbers.

Return type:

list[int]

Returns:

List of integers, a list of all prime numbers less than n.