Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- limit = input(">")
- print [x for x in range(2**limit if limit<10 else 1024) if x > 1 and len([y for y in range(2,x) if x%y ==0])==0][:limit]
- ##############################
- limit = 1000
- print [x for x in range(limit) if x > 2 and len([y for y in range(2,x) if x%y ==0])==0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement