Search
⌘K

Leetcode 1952. Three Divisors

Determine whether n has exactly three positive divisors — equivalently, check if n is a perfect square and its square root is prime, since only squares of primes have exactly three divisors.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.