euler/ruby/euler016.rb

6 lines
80 B
Ruby

require_relative 'euler'
def solution
(2**1000).to_digit_list.inject(:+)
end