initial commit

This commit is contained in:
2025-08-03 20:16:55 -07:00
commit 87a130499d
89 changed files with 10241 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
module _34
let numSumDigitFactorials =
let digitFactorials =
[|0..9|]
|> Array.map common.factorial
let digitFactorialSum n =
n
|> common.numDigits
|> Seq.map (Array.get digitFactorials)
|> Seq.sum
[3..1000000]
|> List.map (fun n -> (n, digitFactorialSum n))
|> List.filter (fun n -> fst n = snd n)
|> List.sumBy fst