projects
/
project-euler.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Done puzzle 64
[project-euler.git]
/
euler15.rb
1
class
Integer
2
def
factorial
3
Array
.
new
(
self
) {|
i
|
i
+
1
}.
reduce
(:*)
4
end
5
end
6
7
if
__FILE__
==
$0
8
print
40
.
factorial
/ (
20
.
factorial
**
2
)
9
end