Esempio n. 1
0
        public object Solve()
        {
            var seq = new FibonacciSequence();

            var sum = seq.TakeWhile(fib => fib <= Limit)
                      .Where(fib => fib.IsEven)
                      .Sum(b => (long)b);

            return(sum);
        }