]> crepu.dev Git - config.git/blob - djavu-asus/emacs/sieve.py
74209a8a00aef0fa9fbab06baf298c119452e895
[config.git] / djavu-asus / emacs / sieve.py
1
2 MAX_PRIME = 100
3
4 sieve = [True] * MAX_PRIME
5 for i in range(2, MAX_PRIME):
6 if sieve[i]:
7 print(i)
8 for j in range(i * i, MAX_PRIME, i):
9 sieve[j] = False