2009-02-09 ProjectEuler 2 Ruby Programming ProjectEuler Ruby a,b = 1,1 sum = 0 while b<=4000000 sum += b if b%2==0 a,b = b,a+b end p sum