You are given a number n. Determine whether n has exactly 3 divisors or not.
is_exactly_three(4) ➞ true
# 4 has only 3 divisors: 1, 2 and 4
is_exactly_three(12) ➞ false
# 12 has 6 divisors: 1, 2, 3, 4, 6, 12
is_exactly_three(25) ➞ true
# 25 has only 3 divisors: 1, 5, 251 ≤ n ≤ 10^12