Can anyone help me with this error it shows non prime numbers as prime | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can anyone help me with this error it shows non prime numbers as prime

numbershttps://code.sololearn.com/cqp8bAfZJIuq/?ref=app

28th Jun 2022, 2:03 PM
Rhishith S
4 Answers
+ 2
Line 5: Loop condition should be i < n / 2
28th Jun 2022, 2:11 PM
Ipang
+ 2
Oh i didn't check that thanks👍
28th Jun 2022, 2:13 PM
Rhishith S
+ 1
Can you please add some comments to indicate what your reasoning behind certain code was? Also, just as a tip, but if you want to ask for help, it's always best to make your code more readable by styling using proper indentation and line breaks.
28th Jun 2022, 2:12 PM
Justice
Justice - avatar
+ 1
I was practicing some assignments that was given in a learning club 🥲
28th Jun 2022, 2:18 PM
Rhishith S