Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: ackub
Problemset: จำนวนเฉพาะ (2560)
Language: python
Time: 0.012 second
Submitted On: 2026-09-10 19:01:56
def chapo(N):
total = 0
for i in range(1,N+1):
if N%i == 0:
total += 1
if total == 2:
return True
return False
n = int(input())
for i in range(0,n):
if chapo(i):
print(i)