cleaned up primes case to remove printing an empty list of divisors