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
b62fdd41ad
euler
/
euler010.rb
6 lines
93 B
Ruby
Raw
Normal View
History
Unescape
Escape
cleans up some older solutions + new Euler module
2014-11-20 19:38:31 +00:00
require_relative
'euler'
initial commit
2014-04-25 23:59:14 +00:00
cleans up some older solutions + new Euler module
2014-11-20 19:38:31 +00:00
def
solution
Prime
.
take_while
{
|
x
|
x
<
2000000
}
.
inject
(
:+
)
end