Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions algorithms/math/divisors.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def oddFactors(self, n):
return result

def oddFactorsSum(self, n):
divs = self.evenFactors(n)
divs = self.oddFactors(n)
return sum(divs)

def evenFactors(self, n):
Expand Down Expand Up @@ -60,4 +60,4 @@ def primeFactors(self, n):

def primeFactorsSum(self, n):
divs = self.primeFactors(n)
return sum(divs)
return sum(divs)