4
votes
1answer
87 views

Project Euler #14 (Longest Collatz Sequence) in Haskell

You can check the problem here: http://projecteuler.net/problem=14 My first approach in Haskell was this: import Data.Ord import Data.List computeCollatzSequenceLength n = let compute l n ...
4
votes
2answers
159 views

Project Euler #9 in haskell

I am trying to teach myself haskell by means of project Euler i sovled problem #9 by means of this code which is on the brute force side I was wondering if there is a more elegant/haskell/efficient ...
5
votes
4answers
535 views

Improving my solution to Project Euler problem #1?

I'm trying to compare my own implementation with another solution of ProjectEuler problem #1, which uses a list comprehension: module Progression1 (sumProgressions) where import Prelude ...