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
1d2e635f05
euler
/
ruby
/
euler010.rb
6 lines
93 B
Ruby
Raw
Blame
History
require_relative
'euler'
def
solution
Prime
.
take_while
{
|
x
|
x
<
2000000
}
.
inject
(
:+
)
end
Reference in New Issue
View Git Blame
Copy Permalink