Create vic_bigdick_sito.py
parent
c1c7f90f47
commit
aee3afe90c
@ -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…
Reference in New Issue