n. A divisor of n is a positive integer d such that n is divisible by d with no remainder.
Return true if n has exactly three distinct positive divisors, and false otherwise.n=49 → True
49 has exactly three divisors: 1, 7 and 49.
n=12 → False
The divisors of 12 are 1, 2, 3, 4, 6 and 12, six in total.
n=1 → False
1 has a single divisor.
n ≤ 10⁵n=49
True
Run checks the first 3 tests in your browser. Submit checks all 141 tests on the server, hidden ones included.