1952. Three Divisors
https://leetcode.com/problems/three-divisors
Description
Given an integer n
, return true
if n
has exactly three positive divisors. Otherwise, return false
.
An integer m
is a divisor of n
if there exists an integer k
such that n = k * m
.
Example 1:
Example 2:
Constraints:
1 <= n <= 104
ac
Previous1951. All the Pairs With the Maximum Number of Common FollowersNext1953. Maximum Number of Weeks for Which You Can Work
Last updated