title: checking for prime number, why does my output not include 2?
body: <pre><code>def is_prime(num):
      for i in range (2, num):
          if num % i == 0:
              return False
          else:
              return True
          
  
  for i in range(1, 20):
      if is_prime(i + 1):
          print(i + 1, end=&quot; &quot;)
  print()
  </code></pre>
  <p>I think it has something to do with the range function and value of 2 in the lower code?</p>
  <p>expected output - 2 3 5 7 9 11 13 15 17 19</p>
  <p>my output - 3 5 7 9 11 13 15 17 19</p>