cokofree:
> Sadly that is pretty slow though...

It's quadratic, and it's not even short, you can do (quadratic still):

print [x for x in range(2, 100) if all(x%i for i in range(2, x))]

In D you can write similar code.
Bye,
bearophile
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to