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

@@ -60,7 +60,7 @@ class Problem2(Problem):
self.timer.stop()
#Save the results
self.result = "The sum of all even Fibonacci numbers less than " + str(self.__topNumber) + " is " + str(self.fullSum)
self.result = "The sum of all even Fibonacci numbers less than " + str(self.__topNumber + 1) + " is " + str(self.fullSum)
#Throw a flag to show the problem is solved
self.solved = True
@@ -88,5 +88,5 @@ if __name__ == '__main__':
"""Results:
The sum of all even Fibonacci numbers less than 4000000 is 4613732
It took 27.621 microseconds to run this algorithm
It took an average of 10.286 microseconds to run this problem through 100 iterations
"""