title: Prime number check acts strange
body: <p>I have been trying to write a program that will take an imputed number, and check and see if it is a prime number.  The code that I have made so far works perfectly if the number is in fact a prime number.  If the number is not a prime number it acts strange.  I was wondering if anyone could tell me what the issue is with the code.</p>
  <pre><code>a=2
  num=13
  while num &gt; a :
    if num%a==0 &amp; a!=num:
      print('not prime')
      a=a+1
    else:
      print('prime')
      a=(num)+1
  </code></pre>
  <p>The result given when 24 is imputed is:</p>
  <pre><code>not prime
  not prime
  not prime
  prime
  </code></pre>
  <p>How would I fix the error with the reporting prime on every odd and not prime for every even?</p>