bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / stats / _qmc / primes_from_2_to
function
scipy.stats._qmc:primes_from_2_to
source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_qmc.py:612
Signature
def primes_from_2_to(n: int) → np.ndarraySummary
Prime numbers from 2 to n.
Parameters
n: intSup bound with
n >= 6.
Returns
primes: list(int)Primes in
2 <= p < n.
Notes
Taken from [1] by P.T. Roy, written consent given on 23.04.2021 by the original author, Bruno Astrolino, for free use in SciPy under the 3-clause BSD.
Aliases
scipy.stats._qmc.primes_from_2_to