Skip to content

Commit 05bfe08

Browse files
committed
Time: 0 ms (100.00%) | Memory: 7.8 MB (24.31%) - LeetSync
1 parent 2c8aa97 commit 05bfe08

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class Solution {
2+
public:
3+
bool isThree(int n) {
4+
int count=0;
5+
for(int i=1; i<=n; i++){
6+
if(n%i==0)
7+
count++;
8+
}
9+
if(count ==3)
10+
return true;
11+
return false;
12+
}
13+
};

0 commit comments

Comments
 (0)