Scilab Function
Last update : 31/10/2005

isprime - checks number if they are primes

Calling Sequence

I = isprime(a)

Parameters

Description

returns 1s for the prime elements in matrix P and 0s for the others.

This function was converted from a Matlab M File

Examples

a=round(30 .*rand(10,4));
P=isprime(a);
disp(a);
disp(P);

See Also

factor ,  

Authors

Dr. Andreas Geissler geisslea@web.de