Check if a number has a prime number of divisors