+ 2
Why I get Compilation error?
I found this code for prime numbers, can somebody tell me why I get "Compilation error" when I run it? Thanks https://code.sololearn.com/csOYsilY5G49/?ref=app
4 Respuestas
+ 10
Hello Atila Sabo
Solution : 🤗🙆♂️ 💖
https://code.sololearn.com/cIdVh7JD5Xtk/?ref=app
+ 5
Hello Atila Sabo
More compact and efficient Solution : 🤗🙆♂️ 💟
https://code.sololearn.com/cUzmmwQq5K7S/?ref=app
+ 3
line 24 there is no closing bracket on the if. Also, I think there is an encoding issue due to where you copied it from. If you remove all the whitespace it might be ok, or try pasting into notepad first and save it with a different encoding. Visually there is no difference
+ 2
Dan Walker and NimWing Yuan and thank you for your help!