[erlang-questions] beginner: Generating a list of prime numbers

Bjorn Gustavsson bgustavsson@REDACTED
Fri Feb 6 17:11:08 CET 2009


On Fri, Feb 6, 2009 at 12:23 PM, Imre Palik <imre@REDACTED> wrote:

> The real morale of the thing is that you want to use list comprehension whenever you can.  It tends to be much faster than recursion.

That surprises me, because I happen to know how list comprehensions
are implemented.

Do you have any measurements to back up your statement?

/Bjorn
-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list