Create vic_bigdick_sito.py

pull/1/head
lesves 5 years ago committed by GitHub
parent c1c7f90f47
commit aee3afe90c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,8 @@
# Sire Kubisi, tady jsem vas dobehl
# Tohle sito je lepsi, kratsi a rychlejsi
# (Meril jsem to pomoci timeit)
from functools import reduce
def primes(n):
return reduce(lambda l, x: [y for y in l if y==x or y%x!=0], range(2, n), range(2, n))
Loading…
Cancel
Save