Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def not_primes(a, b):
- new = []
- correct = ["2", "3", "5", "7"]
- flag = False
- for x in range (a, b):
- flag = False
- for c in range (0, (len(str(x)))):
- print(c)
- hold = str(x)
- if hold[c] not in correct:
- flag = True
- if not flag:
- new.append(x)
- return new
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement