lambda :-)

Ulf Bartelt (stub@pce60.rz.tu-clausthal.de)
Thu, 25 Aug 1994 21:42:31 GMT

#!/usr/local/bin/python --
# -*-python-*-
#
# It's REAL fun using lambda...
# ...but this is an example on how *NOT* to use it...
#
import math

print filter(None,map(lambda y:y*reduce(lambda x,y:x*y!=0,map(lambda x,y=y:y%x,range(2,int(pow(y,0.5)+1))),1),range(2,1000)))

===cut===

Have fun,
Ulf.

--
Ulf Bartelt | 2:2437/120.666@fidonet.org | bartelt@sun2.isaf.tu-clausthal.de
            |                            | stub@linux.rz.tu-clausthal.de