-
-
Save iwazer/49932b6eb52bcd160e9c to your computer and use it in GitHub Desktop.
Problem 20 - Project Euler
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 (2..100).to_a.inject(1){|muls,v| muls * v}.to_s.split('').inject(0){|sum,v| sum + v.to_i} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment