--- ProjectEulerProblem40
+++ ProjectEulerProblem40
@@ -24,11 +24,11 @@
d1 × d10 × d100 × d1000 × d10000 × d100000 × d1000000
]]]
== Solution
`210`
[[[#!Vim scala
Some((1 to 1000000).mkString(""))
.map(num => Seq(1, 10, 100, 1000, 10000, 100000, 1000000).map(i => num(i - 1).toString.toInt).product)
.getOrElse(0) // 210
]]]
---[2017-02-16]
+--[2020-02-19]