Solution

n=int(input())
for x in range(2,n):
for y in range (2,x):
if x%y==0:
break;
else :
print(x,end=' ')



if you have any problem in this code, take a screen shot and contact with Rishabh Chaubey.

Post a Comment

Previous Post Next Post