Sie sind auf Seite 1von 1

function numero_primo ()

n = input('ingresar valor : ');


c = n/2;
while mod(n,c)
c = c+1;
end
if c==1
disp('es primo');
else
disp('no es primo');
end
end

Das könnte Ihnen auch gefallen