0
Can someone help me code a code which prints prime no. Infinitely.
I tried but couldn't figure out how make a loop which will % the number by all the numbers smaller than it except 0,1 and the number itself. https://code.sololearn.com/c4OZfa6kF3pX/?ref=app
7 Respuestas
+ 4
Kenee Patel you may post your code here, so we can figure out what happened wrong.
+ 3
Kenee Patel actually making infinite is useless especially in sololearn's IDE - which will result in a time limit exceed error. You can try to produce primes upto a certain value if you like
+ 2
If u wont laugh
+ 1
I did Seniru Pasan
+ 1
Okay i m gonna try that
+ 1
See this Seniru Pasan, i m almost done, can u check whats wrong, i m not a pro.
https://code.sololearn.com/cQsQP7weuiyg/?ref=app
0
https://code.sololearn.com/cQsQP7weuiyg/?ref=app
Its working but weirdly