- 1
WAP to check whether a number is prime or not
3 Respostas
+ 3
It's a trending topic ^^
https://www.sololearn.com/Discuss/557787/?ref=app
A JS tutorial for implementing improved prime function:
https://code.sololearn.com/WPXD8LSoeiIL/?ref=app
... and one Python implementation:
https://code.sololearn.com/cOdE3LoiYYkQ/?ref=app
;)
0
to check prime just use two for loops .It is simple one oop for taking all numbers 2-9 if the modules of those were 0 it is prime.
0
It's SoloLEARN, not SoloAskOtherPeopleToDoTheWorkForYou... :p