Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- first_numb_max = int(input())
- sec_numb_max = int(input())
- third_numb_max = int(input())
- for symb1 in range(2, first_numb_max + 1, 2):
- for symb2 in range(2, sec_numb_max + 1):
- symb2_is_prime = True
- for checking_is_prime in range(2, symb2):
- if symb2 % checking_is_prime == 0:
- symb2_is_prime = False
- break
- if symb2_is_prime:
- for symb3 in range(2, third_numb_max + 1, 2):
- print(f"{symb1} {symb2} {symb3}")
Advertisement
Add Comment
Please, Sign In to add comment