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:
@@ -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
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user