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 [618]: galois.primes(19) Out[618]: [2, 3, 5, 7, 11, 13, 17, 19]