C Program to Check a Number is Prime or Not | Learn Coding

  Рет қаралды 524,540

Learn Coding

Learn Coding

Күн бұрын

Пікірлер: 423
@Ak-if2fp
@Ak-if2fp 3 жыл бұрын
Best explanation ever....
@gunjankumar6264
@gunjankumar6264 2 жыл бұрын
True, helped me a lot!
@mastermovies1002
@mastermovies1002 7 ай бұрын
Moye moye 😂
@guptsabyasachi346
@guptsabyasachi346 2 жыл бұрын
Excellent video, without your analysis, I would not have learned.
@emaanfatima8884
@emaanfatima8884 2 жыл бұрын
i have been studying in matric for a whole year and tomorrow is my final practical of computer. i have been seeing this program in my computer textbook for a whole year now but never really understood . your lecture really helped :) . love from pakistan.
@sharbansamrat2641
@sharbansamrat2641 10 ай бұрын
waha bhi coding hoti h
@emaanfatima8884
@emaanfatima8884 10 ай бұрын
@@sharbansamrat2641 haha han bhaiya hoti he😂
@abdullahabdulkhaliq5529
@abdullahabdulkhaliq5529 11 ай бұрын
such a great video, very easy to understand it....
@SandipBhattacharya
@SandipBhattacharya Жыл бұрын
All you have to do to test whether a number is prime or not is to divide it successively by all numbers from 2 to n/2, not n. If remainder of any of these divisions is zero, the number is not a prime. If none of the remainders results in 0, it’s a prime number.
@ramanshukla8498
@ramanshukla8498 Жыл бұрын
what about 2
@pranjalsingh4586
@pranjalsingh4586 10 ай бұрын
What about 9 & 15, 9/2 doesn't give 0 as remainder. It means it is a *Prime number* according to you, but it's not 😊 Same for 15/2 doesn't give 0 as remainder,So it will be a Prime Number.. but it is also not a Prime number Hope you understood what I said 😊
@SandipBhattacharya
@SandipBhattacharya 10 ай бұрын
@@pranjalsingh4586 While 9 and 15 don't have a remainder of zero when divided by 2, they do have a remainder of zero when divided by other numbers within the range of 2 to n/2, which makes them non-prime. As mentioned, my method requires checking divisions with all numbers in this range, not just 2. Hope you understand my statement now. 😊
@shaikadeebpasha7174
@shaikadeebpasha7174 3 ай бұрын
Why we should do n/2 in interation
@justanindianguy2898
@justanindianguy2898 2 жыл бұрын
Sir aap kya ho... Aap to mahan ho sir aapki wajah se mai pura samajh gya kaise karna ha Thank you very much sir❤️
@TiwariJ33
@TiwariJ33 8 күн бұрын
1 No. Explanation mza aaya ❤
@amanmate3581
@amanmate3581 2 жыл бұрын
Now the doubt has cleared🙂thank you for making this video🙏👍
@chetnapanchal8378
@chetnapanchal8378 9 ай бұрын
Mind blowing explanation 👌👌
@aglitchinthematrix07
@aglitchinthematrix07 Ай бұрын
God blast you
@bijayapradhan7311
@bijayapradhan7311 26 күн бұрын
Excellent sir , explanation on top ❤🎉
@SarthakChauhan-n4u
@SarthakChauhan-n4u 19 күн бұрын
you are great sir i understand completely thankyou
@amitkarlekar1512
@amitkarlekar1512 2 жыл бұрын
Aap bahot acche se explain karte hai. Aisehi videos banae rahiye, kafi simple way mein sikhne ko milta hai aapse.
@shreeacademy9113
@shreeacademy9113 3 жыл бұрын
Love the way you teach❣️. God bless you sir ❣️😊. There should be teacher like you❣️😊. Lots of love for nepal❣️
@sandipghosh9269
@sandipghosh9269 Жыл бұрын
From*
@prapti.289
@prapti.289 8 ай бұрын
Tomorrow is my practical exam and this video is so helpful. Thank you so much sir 🙏
@rajeshdas-zu5lv
@rajeshdas-zu5lv 3 жыл бұрын
Toba toba toba sara mood khus kardia 😂😂😂😂❤❤❤❤
@sonali1300
@sonali1300 Жыл бұрын
Best explanation Sir...i was struggling with this question a lot..thankyou 🙏🏻
@prachikumari5574
@prachikumari5574 2 жыл бұрын
Kitne easily smjh aa gya😩😩. Thank you sir
@prasanjitdas2295
@prasanjitdas2295 3 ай бұрын
Sir your teaching method is very well and also the dry run method is helps to understanding easily
@Santoshkumar-mm3pr
@Santoshkumar-mm3pr 2 жыл бұрын
One of the best explanation 🔥
@DhRuVpAtE
@DhRuVpAtE 2 жыл бұрын
GOD LEVEL TEACHING TECHNIQUES 🙏🙏🙏
@NehaSharma_nsds
@NehaSharma_nsds 11 ай бұрын
Thank you so much sir for this explanation 😊😊💜
@abhijitsahoo2580
@abhijitsahoo2580 Жыл бұрын
Sir apke teaching style ka jawab nahi ❤️❤️❤️❤️
@ajinkyathoke217
@ajinkyathoke217 Жыл бұрын
great explain sir
@PoojaSharma-hp7zd
@PoojaSharma-hp7zd 2 жыл бұрын
Thanks a lot sir you cleared my doubt 👌👌🤩🤩
@akshayraje3665
@akshayraje3665 2 жыл бұрын
very good explanation
@Kavyashreepandey22
@Kavyashreepandey22 4 ай бұрын
By God sir , I was tensed about this code from many days but u have cleared all my doubts 😊
@jannatbhengray1650
@jannatbhengray1650 Жыл бұрын
Thank you so much sir.. you're clearing my all doubts from your videos
@syedmansababbaszaidi1842
@syedmansababbaszaidi1842 2 жыл бұрын
One of the best explanation.
@balvinderkaur5051
@balvinderkaur5051 Ай бұрын
Thank you sir very much...... You are the best teacher 🙏🙏
@samratmandal2523
@samratmandal2523 2 жыл бұрын
Bohot channels par try Kiya! But samajh yaha aaya Thank you so much sir! Keep posting more learning videos like these...💙💙💙
@RealmGT
@RealmGT 2 жыл бұрын
Same man :-)
@VishalTiwari-gm5yp
@VishalTiwari-gm5yp 2 ай бұрын
Tq so much sir 🙏🙏🙏
@akankshakumari5107
@akankshakumari5107 2 жыл бұрын
Awesome Explanation sir😊 thank you so much
@abhishekak8597
@abhishekak8597 Жыл бұрын
thankyou sir jee you are teaching awesome 🙏🙏
@onlinelearningwithowais2096
@onlinelearningwithowais2096 2 жыл бұрын
A great explanation from an Indian brother ❤ love from Pakistan ❤
@gameselling
@gameselling 2 жыл бұрын
After 5 videos finally I got solution thanks you so much sir 🙏
@aidanafc
@aidanafc 10 ай бұрын
you explain better than our faculty :)
@hackerhacks4520
@hackerhacks4520 Жыл бұрын
Sir your logic to code Prime Number was very easy. I didn't get a thought to create count variable. I was making it very complicated. Thanks Sir 🙏
@D-Coder440
@D-Coder440 Жыл бұрын
Nice Explanation Thank you so Much for that
@shaiknisar9059
@shaiknisar9059 Жыл бұрын
your teaching is very good
@piyushsinha5117
@piyushsinha5117 9 ай бұрын
Thank you bhai ! Nice explanation
@KB_DEVIL_BOY_07
@KB_DEVIL_BOY_07 23 күн бұрын
East ho ya west our teacher is best😊😊
@rushikeshmane4793
@rushikeshmane4793 3 жыл бұрын
Your programming logic is vey easy ,carry on.
@sulekhabhowmik5738
@sulekhabhowmik5738 Жыл бұрын
Sir when u did 5%1==0 then at that time why don't u go out of for loop ??. Bcuz condition is true in for loop . Why did u do 2 3 4 afterwards??
@swaliyagolandaj4960
@swaliyagolandaj4960 Жыл бұрын
Count==2 h so
@thinkover3590
@thinkover3590 Жыл бұрын
Thank u sir for This amazing section
@30vijaytyagi9
@30vijaytyagi9 Жыл бұрын
Thank You Sir
@mohammedkhaleelurrahmanaim8397
@mohammedkhaleelurrahmanaim8397 2 жыл бұрын
Nice explanation God bless u😊😊
@bablukushwaha1793
@bablukushwaha1793 3 жыл бұрын
You are a brand legend of coding
@Akashkumar-vu9bu
@Akashkumar-vu9bu Жыл бұрын
Sir apke sare top super rhte hai Orr explain krne ka tarika super se bhi upar 🤗😘
@prensudangol1547
@prensudangol1547 2 жыл бұрын
i liked your coding simplicity
@Akhilverma-o1c
@Akhilverma-o1c 18 күн бұрын
bool isPrime(int n) { //every number has all its factors less then it's half int i=n/2; //check with odd number will reduce extra work coz, all even no > 2 never prime if(i > 2 && i%2 == 0) i--; while(i > 1) { if(n%i == 0) return false; //decrement by 2 for previous odd no i-=2; } return true; }
@vinityadav1641
@vinityadav1641 Жыл бұрын
Thank you Bhaiya . Mera practical exam aa raha h .apse bohot help mill Raha ❤
@mdimran9937
@mdimran9937 2 жыл бұрын
Thank you so much sir for this help
@santoshkumarvlogs3753
@santoshkumarvlogs3753 8 ай бұрын
nice logic Sir
@Ramsiya..
@Ramsiya.. Жыл бұрын
Very nice sir thank you so much
@VishalGupta-zf3vd
@VishalGupta-zf3vd 2 жыл бұрын
Explaination of driven is amazing sir
@nikhil78980
@nikhil78980 Жыл бұрын
Best explaination sir
@Raja-sen-07
@Raja-sen-07 23 күн бұрын
Best prime number explanation ever❤😊
@M.k__creations
@M.k__creations Жыл бұрын
super explaination
@mubasherhussain5721
@mubasherhussain5721 Жыл бұрын
Your way of teaching is best ever .. Thanks sir thanks alot 😊😊
@ZunurainNadeem
@ZunurainNadeem 14 күн бұрын
kamal samjhaya ha bhai
@shivrajprachande540
@shivrajprachande540 10 ай бұрын
thanku bhai ekk Number Shikate hoo App👍👍👍👍
@ashmitkandari5559
@ashmitkandari5559 2 жыл бұрын
Nicly explaned
@ldragogaming8930
@ldragogaming8930 Жыл бұрын
Jitne doubts the sare clear kr deye😍
@haripriya_bojja
@haripriya_bojja Жыл бұрын
Thank you so much....your explanation is so good
@azizaimtiaz7295
@azizaimtiaz7295 Жыл бұрын
Very helpful video
@Anchal034
@Anchal034 Жыл бұрын
Thank you for make it that easy to understand.
@skxdsbt
@skxdsbt 4 ай бұрын
Thanks a lot sir!
@umerkhan-kv9gd
@umerkhan-kv9gd 2 жыл бұрын
Bht acha samjhaya sir apnay
@MadhuSharma-ni9gi
@MadhuSharma-ni9gi 2 жыл бұрын
Nice Explanation Sir
@dfordigitalduniya4764
@dfordigitalduniya4764 2 жыл бұрын
Nice Explained ....Thanks Bro
@AshutoshA-u5k
@AshutoshA-u5k 5 ай бұрын
Best explanation sir c language ka playlist banado question solve ka
@pranaykumarroy4108
@pranaykumarroy4108 5 ай бұрын
Best explanation
@gopinathdash4831
@gopinathdash4831 2 жыл бұрын
Thanks for your explanation..so helpful...
@Azad_07650
@Azad_07650 2 жыл бұрын
thank you so much for explaining easily...
@AbhishekChaudhary-m8w
@AbhishekChaudhary-m8w 9 ай бұрын
pehli baar ma answer samj ma aagya thanks
@Iron.man.007
@Iron.man.007 3 ай бұрын
Best explanation bro..🎉
@DipakKumar-ey9ix
@DipakKumar-ey9ix 2 жыл бұрын
very nice explanation...thank u !!!!
@asxdd._
@asxdd._ Жыл бұрын
Thanks sir too helpfull❤
@sudipsarkar1512
@sudipsarkar1512 2 жыл бұрын
Thank you very much for the best explanation ❤️❤️🙏🙏🙏
@suvrajitpanda3797
@suvrajitpanda3797 2 жыл бұрын
Best explanation in just 10 min vdo best way to save time❤️
@sayantandey9117
@sayantandey9117 Жыл бұрын
Your explanation is on next level 🔥 ❤️
@ch.sritampatro
@ch.sritampatro 9 ай бұрын
very helpful .
@SrushtishashikantPatil
@SrushtishashikantPatil 3 ай бұрын
Thank you so much!
@wazid7438
@wazid7438 Жыл бұрын
❤❤
@anupama_meher
@anupama_meher 4 ай бұрын
Thank You Sir Ji.. 🙏🏻
@bhimeshyadav7406
@bhimeshyadav7406 2 жыл бұрын
Best teaching and unforgettable sir.....keep it up more videos 👍👍
@rupamkumari4104
@rupamkumari4104 2 жыл бұрын
Thanku sir for explained in easy way🙏🙏🙏🙏
@AshutoshTelangre
@AshutoshTelangre Ай бұрын
Best 🎉
@snehalnerkar816
@snehalnerkar816 2 жыл бұрын
Best explanation sir
@parthbehal2048
@parthbehal2048 Жыл бұрын
Great sir
@sangamxghimire
@sangamxghimire 2 жыл бұрын
Thanks sir Love from Nepal 🇳🇵
@mirajscreation2355
@mirajscreation2355 Жыл бұрын
Sir apke jaisa koi nahi samjha sakta❤
@VarunSingh-cr4tl
@VarunSingh-cr4tl 2 жыл бұрын
Sar you are genius
@radhakantverma435
@radhakantverma435 Жыл бұрын
Very good
@sabnamsana2850
@sabnamsana2850 Жыл бұрын
Thank you 😊 sir
@juntikalita7434
@juntikalita7434 Жыл бұрын
Thank you sir😊
@techcure18
@techcure18 8 ай бұрын
Fabulous explanation 🎉🎉🎉🎉🎉
@anjalilowanshi6197
@anjalilowanshi6197 3 жыл бұрын
Thank you so much sir it's very important video thank uuuuuuuuuuuuuuuuu 🙏🏻🙏🏻
@manishpal1860
@manishpal1860 2 жыл бұрын
You are bast sir
@jayprakashtanty6581
@jayprakashtanty6581 10 ай бұрын
Thank you so much
C Program to Check a Number is Palindrome or Not | Learn Coding
10:22
1 сквиш тебе или 2 другому? 😌 #шортс #виола
00:36
Kluster Duo #настольныеигры #boardgames #игры #games #настолки #настольные_игры
00:47
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 109 МЛН
C Program to Find Prime Number
27:20
CodeWithHarry
Рет қаралды 144 М.
C Program to Check a Number is Armstrong or Not | Learn Coding
11:22
C Program to find Sum of Digits of a Number | Learn Coding
9:18
Learn Coding
Рет қаралды 232 М.
C Program To Print Prime Numbers In A Given Range
17:02
CodeWithHarry
Рет қаралды 136 М.
MR BEAST PARODY 🤑 Ft. INDIAN CREATORS | CARRYMINATI
22:01
CarryMinati
Рет қаралды 30 МЛН
c program to check leap year | learn coding
8:18
Learn Coding
Рет қаралды 161 М.
C Program to Print Star Pattern - Part 1 | Learn Coding
17:58
Learn Coding
Рет қаралды 828 М.
C Program to Print Fibonacci Series | Learn Coding
10:54
Learn Coding
Рет қаралды 373 М.
How to Build Logic in Programming | Logic building tips
14:21
Learn Coding
Рет қаралды 8 М.
1 сквиш тебе или 2 другому? 😌 #шортс #виола
00:36