Skip to content

Instantly share code, notes, and snippets.

@samcv
Created July 10, 2018 20:19
hash = {}
num = 1000000
for i in range(num):
hash[i] = 1
for j in (2,3,4,5,6):
for i in range(0, num, j):
del hash[i]
for i in range(0, num, j):
hash[i] = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment