function primes = prime_hunt ( n )
%% prime_hunt.m
%
  prime = ones ( n, 1 );
  prime(1) = 0;
  for i = 2 : n
    for j = 2 : i
      if ( i % j == 0 )
        prime(i) = 0;
        break;
      end
    end
  end

  primes = find ( prime );

  return
end
