euler/ruby/euler016.rb

6 lines
80 B
Ruby
Raw Normal View History

2014-12-05 00:50:52 +00:00
require_relative 'euler'
def solution
(2**1000).to_digit_list.inject(:+)
end