Can anyone help me with this ;
the goal is to find the Nth prime number ;
but something is going wrong with this algorithm ;
Code:N=int(input("put an integer")) r=3 s=1 while s<=N : i=2 while i<=r : if r%i==0 : break else: i=i+1 if i==r : A=r s=s+1 i=2 r=r+1 print("the answer is",A)
-----