furioko

Untitled

Jun 20th, 2021
641
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. max_first_num = int(input())
  2. max_second_num = int(input())
  3. max_third_num = int(input())
  4. start_num = 1
  5. start_num_for_second = 2
  6. my_pin = ''
  7. first_num = 0
  8. second_num = 0
  9. third_num = 0
  10.  
  11. for first_num in range(1, max_first_num + 1):
  12.     if first_num % 2 == 0:
  13.         for second_num in range(2, max_second_num + 1):
  14.             is_prime = True
  15.  
  16.             for i in range(2, second_num + 1):
  17.                 if second_num % i == 0 and second_num != i:
  18.                     is_prime = False
  19.  
  20.             if is_prime:
  21.                 for third_num in range(1, max_third_num + 1):
  22.                     if third_num % 2 == 0:
  23.                         print(f'{first_num} {second_num} {third_num}')
RAW Paste Data