I was having trouble printing a run of prime numbers between 1 and 100. I'm stumped as to why my code is broken.
Here is what I wrote; it displays all odd numbers rather than prime numbers.
for num in range(1, 101):
for i in range(2, num):
if num % i == 0:
break
else:
print(num)
break