Home - All the pastes - Authored by Thooms
Raw version
1 2 3 4 5 6 7 8 9 10 11 12 13
def compute(): ans = 0 x = 1 y = 2 while x <= 4000000: if x % 2 == 0: ans += x x, y = y, x + y return str(ans) if __name__ == "__main__": print compute()