fork download
  1. c=r=l=1
  2. while c<2015
  3. r^=r<<1
  4. c+=r.s(2).count ?0
  5. l+=1
  6. end
  7. p l
Runtime error #stdin #stdout #stderr 0s 28216KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
prog.rb:4:in `<main>': undefined method `count?' for "11":String (NoMethodError)