Stuck on IS_PRIME!


Help, It throws the error below, been stuck on this



Hi @dontado,

Is your else block indented by one level too much? As is, it identifies x as prime the first time it finds a number that does not divide evenly into it. Instead, it should only execute if the loop has completed all its iterations without finding a divisor for x.


That fixed it. Thanks