title: Failing to change bool var state in loop
body: <p>I'm trying to write a prime number checker according to : <a href="http://www.wikihow.com/Check-if-a-Number-Is-Prime" rel="nofollow">Prime equations</a></p>
  
  <p>My code so far looks like this:</p>
  
  <pre><code>def primer(x):
  
      prime = False
      x = math.sqrt(x)
      if type(x) == float:
          x = math.ceil(x)
  
      for i in range(3,x + 1):
          if (i % 2) == 1:
              prime == True
      print(prime)
  </code></pre>
  
  <p>Trying with 37 as <code>primer(37)</code> ---> sqrt(37) is 6.08</p>
  
  <p>rounded to 7</p>
  
  <p>7 mod 3 is = 1 ( Prime number )</p>
  
  <p>I have no clue with that <code>prime</code> var is not updating. Could someone shed a light please ?</p>
  
  <p>Edit : Linking some repl -> <a href="https://repl.it/BJVu/1" rel="nofollow">Repl Link</a></p>