generate.php print algorithm results test