title: Prime number generator - python
body: <p>It seems the program just keeps iterating over the same numbers.</p>
  
  <pre><code>x = input("Enter a number: ")
  for p in range(2,int(x)+1):
      for i in range(2,p):
          if p%i == 0:
              pass
          else:
              print (p)
  
  print ("Done")
  </code></pre>