Filter out only prime output for testing