Created
August 10, 2012 21:34
-
-
Save lune-sta/3318223 to your computer and use it in GitHub Desktop.
Project Euler 20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts (1..100).inject(1){|a, b| a * b}.to_s.split(//).map(&:to_i).inject(0){|a, b| a + b} # 648 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment