Scilab Function
Last update : 1/11/2005
primes - Generate list of prime
numbers
Calling Sequence
-
p = primes(n)
Parameters
-
n
: scalar positive natural value
-
p
: row vector with prime numbers less than or equal to n
Description
-
A prime number is one that has no factors other than 1 and itself.
This function has been imported from MatLab.
Examples
p=primes(100)
// end of example "primes"
See Also
isprime
,
factor
,
Authors
-
Dr. Andreas Geissler geisslea@web.de