Ответ:
a, b = int(input()), int(input())
for i in range(0, max(a, b) - min(a, b) + 1):
j = min(a, b) + i
k = 0
for i in range(2, j // 2+1):
if (j % i == 0):
k = k+1
if (k <= 0) and (j != 1):
print(j)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
a, b = int(input()), int(input())
for i in range(0, max(a, b) - min(a, b) + 1):
j = min(a, b) + i
k = 0
for i in range(2, j // 2+1):
if (j % i == 0):
k = k+1
if (k <= 0) and (j != 1):
print(j)