Skip to content

Instantly share code, notes, and snippets.

@killy971
Created September 21, 2009 09:57
(2 ** 1000).to_s.scan(/\d/).inject(0){|s, d| s + d.to_i}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment