My scribbles in haskell for Project Euler
Assuming you have installed the Haskell Tool Stack, run:
stack setup
stack build
stack exec haskell-euler
Or use ghci to browse the specific modules and / or execute functions, e.g.
stack ghci
% :browse Problem0005
Problem0005.main :: IO ()
leastCommonMultiple :: Integral a => a -> a
% Problem0005.leastCommonMultiple 25
26771144400
% Problem0003.primeFactors 267759
[3,3,3,47,211]
stack test
Optimize performance of
- Problem 4
- Problem 7
- Problem 9
- Problem 10