This website requires JavaScript.
Explore
Help
Sign In
cosmonaut
/
euler
Watch
1
Star
0
Fork
You've already forked euler
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
f7af5044bd
euler
/
euler016.rb
6 lines
80 B
Ruby
Raw
Normal View
History
Unescape
Escape
refactored some old solutions
2014-12-05 00:50:52 +00:00
require_relative
'euler'
def
solution
(
2
**
1000
)
.
to_digit_list
.
inject
(
:+
)
end