Skip to content

Commit 42a80cd

Browse files
authored
Update basic_maths.py (TheAlgorithms#6017)
1 parent 69cde43 commit 42a80cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: maths/basic_maths.py

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ def number_of_divisors(n: int) -> int:
5757
temp += 1
5858
n = int(n / i)
5959
div *= temp
60+
if n > 1:
61+
div *= 2
6062
return div
6163

6264

0 commit comments

Comments
 (0)