Prime Check Case 3 Not Running

Everything is fine with the code but the testcase no.3 is not working it is showing wrong ans can you please help me out to fix this?

Please use break statement in case you find that the number is ‘Not Prime’.

1 Like