% hw010.m
% John Burkardt
% Print first 100 prime numbers.
%
%  I is the index of the prime number.
%  N is the integer we are checking.
%
fprintf ( '' )
fprintf ( 'Print the first 100 prime numbers.' )
fprintf ( '' )
n = 0;
i = 0;
while ( i < 100 )
  n = n + 1;
  if ( isprime ( n ) )
    i = i + 1;
    fprintf ( '  %d  %d\n', i, n );
  end
end

