restructure zeta/** to storage/zeta/**

This commit is contained in:
2025-05-10 21:54:24 +09:00
parent 2886820691
commit 2f2e0759fd
407 changed files with 7 additions and 1 deletions

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)