This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / 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.ndarray

Summary

Prime numbers from 2 to n.

Parameters

n : int

Sup 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