fork download
  1. i = 2
  2. x = 1
  3. y = 2
  4. a = 0
  5.  
  6.  
  7. while y < 4000000:
  8. a = x + y
  9. if a % 2 == 0:
  10. i = i + a
  11. print i
  12. x = y
  13. y = a
Success #stdin #stdout 0.08s 8832KB
stdin
Standard input is empty
stdout
10
44
188
798
3382
14328
60696
257114
1089154
4613732