FiSGO.PrimesHandler.prime_list

prime_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 the first n primes in file primes_path using FiSGO.PrimesHandler.primes().

Refer to the documentation of FiSGO.PrimesHandler.primes() for additional information.

Parameters:
  • n (int) – Positive integer, number of 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, list of the first n prime numbers.