This commit is contained in:
fzorb 2025-05-07 15:35:36 +03:00
parent c33804e838
commit 6b3ecf7138
2 changed files with 18 additions and 0 deletions

17
3060/solutie.py Normal file
View file

@ -0,0 +1,17 @@
k = input()
p = input()
n = 0
for i in range(1, 9999):
neprim = True
for j in range(2,i):
if i % j == 0:
neprim = False
break
if neprim:
if not k in str(i):
if not p in str(i):
if i > n:
n = i
print(n)