Euler problem 8.2
.

.
import Data.Char max13 lst = max13n lst 0 where max13n lst n | (length lst) < 13 = n | n > take13 = max13n (tail lst) n | otherwise = max13n (tail lst) take13 where take13 = product (take 13 lst) str <- readFile "n.txt" max13 (map (fromIntegral . digitToInt) . concat . lines $ str)
.
— Me@2022-11-19 12:04:41 PM
.
.
2022.11.19 Saturday (c) All rights reserved by ACHK

You must be logged in to post a comment.