Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numbers = list(range(30))
- primes = []
- for n in numbers:
- if n >2:
- check = True
- for j in range(2,n):
- if n%j == 0:
- check = False
- if check:
- primes.append(n)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement