This website requires JavaScript.
Explore
Help
Sign In
atomaka
/
euler-presentation-code
Watch
1
Star
0
Fork
You've already forked euler-presentation-code
0
Code
Releases
Activity
5776e764b9
euler-presentation-code
/
solutions
/
solution-5.rb
4 lines
69 B
Ruby
Raw
Blame
History
def
solution_5
(
max
)
(
1
..
max
)
.
inject
(
1
)
{
|
lcm
,
n
|
lcm
.
lcm
(
n
)
}
end
View Git Blame
Copy Permalink