Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open('17-4.txt') as f:
- nums = []
- while s := f.readline():
- x = int(s)
- if x % 3 == 0 and all(x % d != 0 for d in (7, 17, 19, 27)):
- nums.append(x)
- print(len(nums), max(nums))
Advertisement
Add Comment
Please, Sign In to add comment