On Feb 14, 5:26 am, [EMAIL PROTECTED] wrote:
> 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

all(x%i ha
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to