dxnge

8

Oct 30th, 2021 (edited)
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. pairs = (list(map(int, a.split())) for a in open('8.txt'))
  2. pairs_2 = (y[0] == y[1] for y in ([sum(n % d == 0 for d in (3, 7, 13, 23, 50)) for n in x] for x in pairs))
  3.  
  4. print(sum(pairs_2))
  5.  
Add Comment
Please, Sign In to add comment