Update basic_maths.py (#6017)

This commit is contained in:
Nivid Patel 2022-06-22 00:04:18 -04:00 committed by GitHub
parent 69cde43ca1
commit 42a80cdaf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,8 @@ def number_of_divisors(n: int) -> int:
temp += 1
n = int(n / i)
div *= temp
if n > 1:
div *= 2
return div