mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-20 00:02:04 +00:00
Update basic_maths.py (#6017)
This commit is contained in:
parent
69cde43ca1
commit
42a80cdaf6
|
@ -57,6 +57,8 @@ def number_of_divisors(n: int) -> int:
|
||||||
temp += 1
|
temp += 1
|
||||||
n = int(n / i)
|
n = int(n / i)
|
||||||
div *= temp
|
div *= temp
|
||||||
|
if n > 1:
|
||||||
|
div *= 2
|
||||||
return div
|
return div
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user