Prime number | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Prime number

how it is solved

24th Dec 2016, 2:59 PM
RJ Vikki
RJ Vikki - avatar
2 Answers
+ 1
To test if a number is prime you assume that is divisible only by 1 and itself. please take a look to my code: https://code.sololearn.com/c8gjJwr0o455/?ref=app
25th Dec 2016, 12:16 AM
Michael Isac Girardi
Michael Isac Girardi - avatar
0
Where is the Q?
24th Dec 2016, 3:00 PM
Faroug AS Hashad
Faroug AS Hashad - avatar