Qu

primes

Builtin index · Core maths

primes(n)

Input: n · Output: no output

What it is

All primes <= n as an ascending Vec, by a sieve of Eratosthenes; n < 2 gives an empty Vec. n is a single integer. Errors: a non-integer n, or n above 100,000,000.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
primes(n)
n Vecnot documented yet
not documented yet—

Examples

No documentation example calls this form yet. The Core maths chapter is where one belongs.