Advertisement
bl00dt3ars

13. Prime Pairs

Nov 23rd, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.64 KB | None | 0 0
  1. a = int(input())
  2. b = int(input())
  3. c = int(input())
  4. d = int(input())
  5.  
  6. for i in range(a, a + c + 1):
  7.     for x in range(b, b + d + 1):
  8.         if i == 11 or i == 13 or i == 17 or i == 19 or i == 23 or i == 29 or i == 31 or i == 37 or i == 41 or i == 43 or i == 47 or i == 53 or i == 59 or i == 61 or i == 67 or i == 71 or i == 73 or i == 79 or i == 83 or i == 89 or i == 97:
  9.             if x == 11 or x == 13 or x == 17 or x == 19 or x == 23 or x == 29 or x == 31 or x == 37 or x == 41 or x == 43 or x == 47 or x == 53 or x == 59 or x == 61 or x == 67 or x == 71 or x == 73 or x == 79 or x == 83 or x == 89 or x == 97:
  10.                 print(f"{i}{x}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement