found all the prime numbers and printing on all the extra lines