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

@@ -72,7 +72,7 @@ class Problem21(Problem):
self.timer.stop()
#Save the results
self.result += "All amicable numbers less than 10000 are"
self.result += "All amicable numbers less than 10000 are\n"
for num in self.amicable:
self.result += str(num) + '\n'
self.result += "The sum of all of these amicable numbers is " + str(sum(self.amicable))
@@ -121,5 +121,5 @@ All amicable numbers less than 10000 are
6232
6368
The sum of all of these amicable numbers is 31626
It took 59.496 milliseconds to run this algorithm
It took an average of 54.769 milliseconds to run this problem through 100 iterations
"""