Project euler #2¶
Testing out "https://github.com/danielfrg/pelican-ipynb" , a plugin that allows you to blog with Jupyter notebooks.
Problem definition¶
Project Euler #2 "https://projecteuler.net/problem=2", By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
By using a loop (and not a recursive function) we avoid the only pit fall here, calculating the answer in very short time.