Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
By considering the terms in the Fibonacci sequence to the maximum of four million, find the sum of the even terms in the sequence to this limit.
Hint: Use of a knowledge of programming might be helpful.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Here is my python Solution:
The console output (with the time given for other reasons):
result 4613732 returned after 16.3734951019 seconds (1 million iterations).