I wrote the following function: function [x]=isprime(num) vect=factor(num); if length(vect)==1 then x=1; else x=0; end endfunction I am getting the following output:
-->isprime(25411588) 0. ans = 0. Why am I getting output twice, or in other words how can I suppress the first zero reported in the command window? Thanks, Robin
_______________________________________________ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users