I want to print a series of prime numbers from one to a hundred. Here is what my code looks like:
for num in range(1, 101):
for i in range(2, num):
if num % i == 0:
It prints all the odd numbers instead of primes. Can someone help me with the code?