Updated run times and a few typos

This commit is contained in:
2020-07-21 09:54:55 -04:00
parent db0788d2cc
commit 467e15817d
33 changed files with 47 additions and 42 deletions

View File

@@ -63,7 +63,7 @@ class Problem1(Problem):
self.solved = True
#Save the results
self.result = "The sum of all number < " + str(self.__topNum + 1) + " is " + str(self.fullSum)
self.result = "The sum of all numbers < " + str(self.__topNum + 1) + " is " + str(self.fullSum)
#Reset the problem so it can be run again
def reset(self):
@@ -88,6 +88,6 @@ if(__name__ == "__main__"):
print("It took " + problem.getTime() + " to solve this algorithm")
"""Results:
The sum of all the multiples of 3 or 5 is 233168
It took 114.142 microseconds to run this algorithm
The sum of all numbers < 1000 is 233168
It took an average of 102.336 microseconds to run this problem through 100 iterations
"""