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,28 @@
A, B = map(int, input().split())
P = [2]
cnt = 0
t = 4
while B >= t:
if A <= t <= B:
cnt += 1
t *= 2
for i in range(3, int(B ** (1 / 2)) + 1, 2):
for p in P:
if i % p == 0:
break
elif i < p ** 2:
P.append(i)
t = i * i
while B >= t:
if A <= t <= B:
cnt += 1
t *= i
break
else:
P.append(i)
t = i * i
while B >= t:
if A <= t <= B:
cnt += 1
t *= i
print(cnt) # 매우 빨라지고 싶은 에라토스테네스 내장형++