mirror of
https://bitbucket.org/Mattrixwv/projecteulerpython.git
synced 2025-12-06 17:43:58 -05:00
Updated run times and a few typos
This commit is contained in:
@@ -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
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user