Can anyone help me in program of prime number? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Can anyone help me in program of prime number?

23rd Jul 2017, 3:48 PM
Nurjahan Shaikh
Nurjahan Shaikh - avatar
9 Answers
+ 10
You can actually search the Code Playground for code samples pertaining prime numbers.
23rd Jul 2017, 3:50 PM
Hatsy Rei
Hatsy Rei - avatar
+ 8
If you still have questions regarding specific code snippets, you can post them here for community help.
23rd Jul 2017, 3:56 PM
Hatsy Rei
Hatsy Rei - avatar
+ 5
my program is not wrong its working u can check the o/p...there can be many logics to run the same program...
24th Jul 2017, 2:54 AM
Pooja Bele
Pooja Bele - avatar
+ 3
Here is a program to check the i/p number is prime or not https://code.sololearn.com/cWAkxoO3jJIF/?ref=app
23rd Jul 2017, 5:23 PM
Pooja Bele
Pooja Bele - avatar
+ 2
k .thnx.
23rd Jul 2017, 3:52 PM
Nurjahan Shaikh
Nurjahan Shaikh - avatar
+ 2
u know code of that program???
23rd Jul 2017, 3:59 PM
Nurjahan Shaikh
Nurjahan Shaikh - avatar
+ 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;
24th Jul 2017, 2:36 AM
Amitansh Verma
Amitansh Verma - avatar
+ 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 ;)
24th Jul 2017, 6:40 AM
visph
visph - avatar
- 1
hey!!!!! what do you think baby???
14th Sep 2017, 3:39 AM
ℍ𝕖𝕔𝕜𝕖𝕣𝕤𝕄𝕠𝕟𝕜
ℍ𝕖𝕔𝕜𝕖𝕣𝕤𝕄𝕠𝕟𝕜 - avatar