Solution



def prime(n) :
count=1
for x in range(3, 50000):
for y in range(2, x):
if x%y==0 :
break;
else:
count=count+1
if count ==n:
return x
n=int(input())
if n==1:
print (1)
else :

print (prime(n))


if you have any problem in this code, take a screenshot and contact with Rishabh Chaubey.
Previous Post Next Post