Skip to content

Commit 2c8aa97

Browse files
committed
Added README.md file for Three Divisors
1 parent ae05860 commit 2c8aa97

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

2083-three-divisors/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<h2><a href="https://leetcode.com/problems/three-divisors">Three Divisors</a></h2> <img src='https://img.shields.io/badge/Difficulty-Easy-brightgreen' alt='Difficulty: Easy' /><hr><p>Given an integer <code>n</code>, return <code>true</code><em> if </em><code>n</code><em> has <strong>exactly three positive divisors</strong>. Otherwise, return </em><code>false</code>.</p>
2+
3+
<p>An integer <code>m</code> is a <strong>divisor</strong> of <code>n</code> if there exists an integer <code>k</code> such that <code>n = k * m</code>.</p>
4+
5+
<p>&nbsp;</p>
6+
<p><strong class="example">Example 1:</strong></p>
7+
8+
<pre>
9+
<strong>Input:</strong> n = 2
10+
<strong>Output:</strong> false
11+
<strong>Explantion:</strong> 2 has only two divisors: 1 and 2.
12+
</pre>
13+
14+
<p><strong class="example">Example 2:</strong></p>
15+
16+
<pre>
17+
<strong>Input:</strong> n = 4
18+
<strong>Output:</strong> true
19+
<strong>Explantion:</strong> 4 has three divisors: 1, 2, and 4.
20+
</pre>
21+
22+
<p>&nbsp;</p>
23+
<p><strong>Constraints:</strong></p>
24+
25+
<ul>
26+
<li><code>1 &lt;= n &lt;= 10<sup>4</sup></code></li>
27+
</ul>

0 commit comments

Comments
 (0)