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