This is a little shorter :-)

[2]+[x for x in range(2,99)if 2**x%x==2] 

Bye,
bearophile

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to