p = primes(n)
| Parameter | Description |
|---|---|
| n | scalar, real integer value |
| Parameter | Description |
|---|---|
| p | vector with prime numbers. |
p = primes(n) returns a row vector containing all the prime numbers less than or equal to n.
The data type of p is the same as that of n.
p = primes(15)
| Version | Description |
|---|---|
| 1.0.0 | initial version |