My Advent of Code solutions in Python. kevinyap.ca/2019/12/going-fast-in-advent-of-code/
advent-of-code python
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix bug in utils._eratosthenes()

+2 -2
+2 -2
2017/utils.py
··· 85 85 yield i 86 86 87 87 # Mark factors as non-prime 88 - for n in xrange(i * i, n, i): # NOQA 89 - _primes[n] = False 88 + for j in xrange(i * i, n, i): # NOQA 89 + _primes[j] = False 90 90 91 91 92 92 def primes(n):