dxnge

17

Nov 4th, 2021
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. gen = [int(x) for x in open('17.txt') if int(x) % 16 == 11 and int(x) % 7 == 0
  2.        and all(int(x) % d != 0 for d in (6, 13, 19))]
  3. print(sum(gen), len(gen))
  4.  
Advertisement
Add Comment
Please, Sign In to add comment