+ 3
Can anyone help me in program of prime number?
9 Réponses
+ 10
You can actually search the Code Playground for code samples pertaining prime numbers.
+ 8
If you still have questions regarding specific code snippets, you can post them here for community help.
+ 5
my program is not wrong its working u can check the o/p...there can be many logics to run the same program...
+ 3
Here is a program to check the i/p number is prime or not
https://code.sololearn.com/cWAkxoO3jJIF/?ref=app
+ 2
k .thnx.
+ 2
u know code of that program???
+ 2
pooja, your program for prime numbers is wrong. it should be:
for (I=2; I <a/2; I++)
if(a% I==0)
return I;
+ 2
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
;)
- 1
hey!!!!! what do you think baby???