Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- print(*filter(lambda x:
- list(filter(lambda y: (x / y).is_integer(), range(2, int(math.sqrt(x)) + 1, 2)))
- == [],
- range(2, int(input()) + 1)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement