Sichanov

gg

Jul 23rd, 2021
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.60 KB | None | 0 0
  1. upper_first = int(input())
  2. upper_second = int(input())
  3. upper_third = int(input())
  4.  
  5. for first in range(1, upper_first + 1):
  6.     if first % 2 == 0:
  7.         for second in range(2, upper_second + 1):
  8.             second_number_is_prime = True
  9.             for each_number in range(2, second):
  10.                 if second % each_number == 0:
  11.                     second_number_is_prime = False
  12.                     break
  13.             if second_number_is_prime:
  14.                 for third in range(1, upper_third + 1):
  15.                     if third % 2 == 0:
  16.                         print(f'{first}{second}{third}')
  17.  
Advertisement
Add Comment
Please, Sign In to add comment