fork(2) download
  1. sum = 0
  2. 1.upto(666554) do |n|
  3. sum += n if n.to_s.match /^[456]+$/
  4. end
  5. puts sum
Success #stdin #stdout 0.91s 7408KB
stdin
Standard input is empty
stdout
409632209