diff --git a/4/erastotenovo_sito.md b/4/erastotenovo_sito.md index 501e5eb..cbfdfef 100644 --- a/4/erastotenovo_sito.md +++ b/4/erastotenovo_sito.md @@ -30,7 +30,7 @@ def generate_primes(lim): # lim je horni hranice intervalu for i in nums: # prochazime nums a snazime se rasove cistit # cili nechat jenom cisla ktery nejsou delitelna nove pridanym # prvocislem - if i % x: + if i % x: # True jenom pokud `i % x` neni 0 -> nedelitelny temp.append(i) # temp nam slouzi jako budouci nums nums = temp # pozirame temp a aktualizujeme nums diff --git a/4/erastotenovo_sito.py b/4/erastotenovo_sito.py index c60294c..c4fbce9 100644 --- a/4/erastotenovo_sito.py +++ b/4/erastotenovo_sito.py @@ -28,7 +28,7 @@ def generate_primes(lim): # lim je horni hranice intervalu for i in nums: # prochazime nums a snazime se rasove cistit # cili nechat jenom cisla ktery nejsou delitelna nove pridanym # prvocislem - if i % x: + if i % x: # True jenom pokud `i % x` neni 0 -> nedelitelny temp.append(i) # temp nam slouzi jako budouci nums nums = temp # pozirame temp a aktualizujeme nums