Skip to content

Commit

Permalink
Problem 16 solved
Browse files Browse the repository at this point in the history
  • Loading branch information
wonjung committed Dec 19, 2012
1 parent f9720d3 commit e4122e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions problem16/1st.rb
@@ -0,0 +1,6 @@
#!/usr/bin/env ruby

i = 2 ** 1000
sum = 0
i.to_s.each_char { |c| sum = sum + c.to_i }
puts sum

0 comments on commit e4122e4

Please sign in to comment.