Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
5 lines (3 sloc) 70 Bytes
n = 2**1000
a = n.to_s.chars.inject(0) { |sum, n| sum + n.to_i }
p a