Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
6 lines (5 sloc) 95 Bytes
#!/usr/bin/env ruby
i = 2 ** 1000
sum = 0
i.to_s.each_char { |c| sum = sum + c.to_i }
puts sum