so i'm trying to find the primary numbers under 500 and this code works but I don't understand why when looking at it because when i in the for loop is lets say 11, wouldn't the if statement i%11 != 0 be false and therefore not print out i? but it does print 11 (which is good cuz its a primary number) but i dont see how or why this works? can someone explain?
my bad, i swore for some reason it was working but just check you're right...
another question though, this stops at 113 for some reason even though i want it to go up to 500... it looks like it stops after the first else if???