+ 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

28th Aug 2018, 9:48 PM
Atila Sabo
Atila Sabo - avatar
4 Respuestas
+ 10
Hello Atila Sabo Solution : 🤗🙆‍♂️ 💖 https://code.sololearn.com/cIdVh7JD5Xtk/?ref=app
29th Aug 2018, 1:31 AM
NimWing Yuan
NimWing Yuan - avatar
+ 5
Hello Atila Sabo More compact and efficient Solution : 🤗🙆‍♂️ 💟 https://code.sololearn.com/cUzmmwQq5K7S/?ref=app
29th Aug 2018, 6:54 AM
NimWing Yuan
NimWing Yuan - avatar
+ 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
28th Aug 2018, 10:13 PM
Dan Walker
Dan Walker - avatar
+ 2
Dan Walker and NimWing Yuan and thank you for your help!
29th Aug 2018, 6:43 AM
Atila Sabo
Atila Sabo - avatar