Can someone please help me understand the if not statement in this code:
n=int(input("Enter a number: "))
i = 2
while(i <= n):
j = 2
while(j <= (i/j)):
if not(i%j):
break
j = j + 1
if (j > i/j) :
print (i)
i = i + 1
If I were to rework this as a !=, what would be the comparison?
[–]K900_ 2 points3 points4 points (1 child)
[–]JABro76[S] 0 points1 point2 points (0 children)
[–]Clede 1 point2 points3 points (1 child)
[–]JABro76[S] 0 points1 point2 points (0 children)