Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- upper_first = int(input())
- upper_second = int(input())
- upper_third = int(input())
- for first in range(1, upper_first + 1):
- if first % 2 == 0:
- for second in range(2, upper_second + 1):
- second_number_is_prime = True
- for each_number in range(2, second):
- if second % each_number == 0:
- second_number_is_prime = False
- break
- if second_number_is_prime:
- for third in range(1, upper_third + 1):
- if third % 2 == 0:
- print(f'{first}{second}{third}')
Advertisement
Add Comment
Please, Sign In to add comment