I've never programmed in Python before, and I've taken some examples of the internet and edited them a bit to create a code that finds prime numbers. However, even after consulting people who know quite a bit of Python, I can't figure out what the problem with this code is. I always just get the error:
TypeError: 'str' object is not callable
for this line:
if (j > i/j) : print(i, " is prime")
Here's the full code for the program.
i = 2
while(i < 100):
j = 2
while(j <= (i/j)):
if not(i%j): break
j = j + 1
if (j > i/j) : print(i, " is prime")
i = i + 1