| MATLAB Function Reference | ![]() |
TF = isprime(A)
TF = isprime(A) returns an array the same size as A containing logical 1 (true) for the elements of A which are prime, and logical 0 (false) otherwise. A must contain only positive integers.
c = [2 3 0 6 10]
c =
2 3 0 6 10
isprime(c)
ans =
1 1 0 0 0![]() | ispref | isprop | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |