function mersenne_prime_values_test ( )

%*****************************************************************************80
%
%% mersenne_prime_values_test() tests mersenne_prime_values().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    18 January 2023
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'mersenne_prime_values():\n' );
  fprintf ( 1, '  mersenne_prime_values() returns indices of Mersenne_primes.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '     n         mersenne_prime(n)\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, n ] = mersenne_prime_values ( n_data );

    if ( n_data == 0 )
      break
    end

    fprintf ( 1, '  %4d  %10d\n', n_data, n );

  end

  return
end
