0
Why this code of Prime numbers is not working (link given below)??
2 Answers
0
Variable rem is instantiated inside a loop, therefore it cannot be reached outside of it. Moving it outside the loop will fix the compilation error, but will not give the correct results.