+ 1

How to make it to display 0 as prime i got stuck

https://code.sololearn.com/wprSLQTsgk5B/?ref=app

25th Feb 2020, 7:59 PM
sibu dhital
sibu dhital - avatar
3 Answers
+ 1
Why you want 0 as prime..? 0,1 are neither prime, nor non-prime.. Your code is incomplete check for num=25, and OK if are just checking, and not considering all numbers..
25th Feb 2020, 8:20 PM
Jayakrishna 🇼🇳
+ 1
0 is Neither prime nor Non-prime number. Change The value You store in the variable "Number"...To see the output.
25th Feb 2020, 8:22 PM
S.Jeevan Surya
S.Jeevan Surya - avatar
+ 1
I searched in google and found 0 as prime thats why i wanted it as prime Aneway thank you Jayakrishna and S.Jeevan Surya These answer help me so much.
28th Feb 2020, 12:59 AM
sibu dhital
sibu dhital - avatar