Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def facCount(num):
- summ = 0
- for i in range(1, int(sqrt(num)) + 1):
- if num % i == 0:
- summ += 1
- summ *= 2
- if int(sqrt(num)) ** 2 == num:
- summ -= 1
- return summ
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement