Added solution for problem 35

This commit is contained in:
2021-06-06 12:19:15 -04:00
parent db8e824896
commit 38803dd7f1
4 changed files with 128 additions and 4 deletions

View File

@@ -35,12 +35,14 @@ class Problem34(Problem):
#Functions
#Constructor
def __init__(self):
super().__init__("")
super().__init__("Find the sum of all numbers which are equal to the sum of the factorial of their digits")
self.totalSum = 0
self.factorials = []
for cnt in range(0, 10):
for _ in range(0, 10):
self.factorials.append(0)
#Operational functions
#Solve the problem
def solve(self):
#If the problem has already been solved do nothing and end the function
if(self.solved):