title: How to print the 1398th prime number in python?
body: <p>hey guys i'm newbie please tell me how to make this code work to print the 1398th prime number.
  <a href="https://code.sololearn.com/c1a3lvSiIF9w/?ref=app" rel="nofollow noreferrer">https://code.sololearn.com/c1a3lvSiIF9w/?ref=app</a></p>
  
  <pre><code>#newbie
  def IsPrime(X):
    IsPrime = 1
    for i in range(2):
      if i &lt; X:
        if X % i == 0:
          IsPrime = 0
          if IsPrime == 0:
            print ("X Is Prime")
          else:
            print ("X Is Not Prime")
        else:
          i = i + 1
      else:
        if IsPrime == 0:
          print ("X Is Prime")
        else:
          print ("X Is Not Prime")
  #newbie
  
  for i in range(2):
    C = 0
    if C &lt; 1398:
      if IsPrime(i) == 1:
        C = C + 1
        i = i + 1
      else:
        i = i + 1
    else:
      print (i - 1)
  #newbie
  </code></pre>