fork download
  1. i = 0
  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
  14. a = 0
Success #stdin #stdout 0.01s 7728KB
stdin
Standard input is empty
stdout
8
42
186
796
3380
14326
60694
257112
1089152
4613730