Determines whether elements of an array of any dimension are prime numbers. A natural number is prime if and only if the only divisors of that number are 1 and the number itself.
c = is_prime(a)Legacy name: isprime
Array of any dimension of real values.
Array of any dimension of Boolean values. An element in c is 1 if and only if the corresponding element of a is a prime number. Otherwise, the element is 0. c is of the same size as a.
C = is_prime([5, 7, 6, 789])
Where This Node Can Run:
Desktop OS: Windows
FPGA: This product does not support FPGA devices