Added text output for result
Output text depends on which loop found the prime.