Computes all primes less than or equal to a number you specify. A natural number is prime if and only if the only divisors of that number are 1 and the number itself.
c = primes(a)
Scalar. a can be a decimal number, char or logical. a must be less than or equal to 2^32-1.
Primes less than a. c is a row vector.
C = primes(101)
Where This Node Can Run:
Desktop OS: Windows
FPGA: This product does not support FPGA devices