Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - Русский - 日本語
Scilab Help >> Elementary Functions > Discrete mathematics > primes

primes

primes function

Syntax

[y]=primes(x)

Arguments

x

real scalar

y

vector

Description

Given a real x, primes(x) returns in a vector y all the primes numbers included between 1 and x. If x<2then primes(x) returns an empty matrix.

Examples

x=35
y=primes(x)

See Also

Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:27:33 CEST 2016