Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open('17-4.txt') as f:
- a = list(map(int, f.read().split()))
- b = filter(lambda x: x % 31 == 0 or x % 47 == 0 or x % 53 == 0, a)
- c = list(filter(lambda x: x % 3 == x % 5, b))
- print(f'Количество цифр: {len(c)}')
- print(f'Минимальное число: {min(list(c))}')
- #31 и 1081
Advertisement
Add Comment
Please, Sign In to add comment