galois.
primes
Returns all primes \(p\) for \(p \le n\).
n (int) – A positive integer.
The primes up to and including \(n\).
list
References
https://oeis.org/A000040
Examples
In [1]: galois.primes(19) Out[1]: [2, 3, 5, 7, 11, 13, 17, 19]