euler/euler016.rb

2 lines
53 B
Ruby
Raw Normal View History

2014-04-25 23:59:14 +00:00
puts (2**1000).to_s.split("").map(&:to_i).inject(:+)