[Haskell-beginners] performance issues
Daniel Fischer
daniel.is.fischer at googlemail.com
Fri Aug 19 12:25:34 CEST 2011
On Friday 19 August 2011, 12:02:30, Sunil S Nandihalli wrote:
> Hello everybody,
> I am a newbie to haskell. I was wondering if there are things I need
> to do to make the following code faster.
From a short look, you'll probably need a faster prime generation, try a
sieve of Eratosthenes, that's pretty fast. The rest looks okay
> I have tried changing the
> Integer to Int but did not help much..
>
> https://gist.github.com/c1ee2d6397cd5b28ade5
>
> Thanks in advance.
> Sunil.
More information about the Beginners
mailing list