create dev channel

This commit is contained in:
2025-05-07 04:44:30 +09:00
parent 603fca2b20
commit 16a8e59450
426 changed files with 643 additions and 36 deletions

24
zeta/py/completed/2581.py Normal file
View File

@@ -0,0 +1,24 @@
M, N = int(input()), int(input())
P = []
MP = []
for i in range(2, N+1):
for p in P:
if i % p == 0:
break
elif p ** 2 > i:
if i >= M:
MP.append(i)
P.append(i)
break
else:
if i >= M:
MP.append(i)
P.append(i)
if MP:
print(sum(MP))
print(MP[0])
else:
print(-1)