Does any one know any line of command that can be used in c++ to check if a number is a prime number? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Does any one know any line of command that can be used in c++ to check if a number is a prime number?

please I need explanations too

7th Sep 2017, 4:55 PM
Ebere Lucky
Ebere Lucky - avatar
4 Answers
+ 2
Go to code playground and search "prime", you'll see a ton of examples.
7th Sep 2017, 5:02 PM
Bagshot
Bagshot - avatar
+ 2
ok. thanks bagahot
7th Sep 2017, 5:11 PM
Ebere Lucky
Ebere Lucky - avatar
+ 1
bagshot*
7th Sep 2017, 5:11 PM
Ebere Lucky
Ebere Lucky - avatar
+ 1
No problem. Post if you have anymore questions.
7th Sep 2017, 5:18 PM
Bagshot
Bagshot - avatar