%  function y=primenum(n):   computes prime # n
function y=primenum(n)
m=max(max(n));
m=floor(1.2*(m+3)*log(m+2))+1;
t=primes(m);
y=t(n);
