| Python 2.2 für Einsteiger | ||
|---|---|---|
| <<< Previous | Einführung anhand von Beispielen | Next >>> |
#!/usr/bin/python2.2
a=input("Primzahlen bis:")
b=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,a)))
| <<< Previous | Home | Next >>> |
| Verknüpfte Funktionen | Up | Code Reuse Beispiel |