The program list the prime numbers from 1 to 100, but when running it I get and syntax error on the "print p". Whats wrong??
for p in range(2, n+1):
for i in range(2, p):
if p % i == 0:
break
else:
print p
print ("Done")