I made a program to find a prime number and store in list. Now i want to print the exact position of the prime number For eg. in the range of 2 to 20 If i take the input 6 it should print 13 not 17.
q=[]
for num in range(1,101):
if num>1:
if all(num%i!=0 for i in range(2,int(num**0.5+1))):
q.append(num)