<< factorize Arithmetic not_even >>

Scilab Scholar module for schools >> Arithmetic > list_primes

list_primes

returns the sequence of primes less than a number

Calling sequence

s = list_primes(n)

Arguments

n

positive integer or zero

s

sequence of numbers

Description

list_primes(n) returns the sequence of prime numbers less than n with n a positive integer or zero.

Examples

list_primes(100)

See Also

<< factorize Arithmetic not_even >>