Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a =[True] * 1001
- #True means open false means closed
- for x in range(2,1001):
- for i in range(0,1001):
- if (i % x == 0):
- if (a[i] == True):
- a[i] = False
- elif (a[i] == False):
- a[i] = True
- for i in range(0,1001):
- if a[i] == False:
- print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement