function is_gaussian_prime_complex_test ( )

%*****************************************************************************80
%
%% gaussian_prime_complex_test() tests is_gaussian_prime_complex().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    26 January 2023
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'is_gaussian_prime_complex_test():\n' );
  fprintf ( 1, '  is_gaussian_prime() decides if a complex integer\n' );
  fprintf ( 1, '  is a Gaussian prime.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '           p          is_gaussian_prime(p)\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, p ] = gaussian_prime_complex_values ( n_data );

    if ( n_data == 0 )
      break;
    end

    tf = is_gaussian_prime ( p );

    if ( tf )
      ch = 'true';
    else
      ch = 'false';
    end

    fprintf ( 1, '(%d,%d)  %s\n', real ( p ), imag ( p ), ch );

  end

  return
end
