title: Print series of prime numbers in python
body: <p>I was having issues in printing a series of prime numbers from one to hundred. I can't figure our what's wrong with my code.</p>
  
  <p>Here's what I wrote; it prints all the odd numbers instead of primes:</p>
  
  <pre><code>for num in range(1, 101):
      for i in range(2, num):
          if num % i == 0:
              break
          else:
              print(num)
              break
  </code></pre>