prime_up_to¶
- prime_up_to(n: int) ndarray[source]¶
Check if any number from 1 to n is a prime number and return the ones which are.
- Parameters:
- nint
Number up to which the search for prime number will go
- Returns:
- array
Prime numbers up to n
Examples
>>> from aeon.utils.numba.stats import prime_up_to >>> p = prime_up_to(50)