22 - PROGRAM TO FIND THE PRIME NUMBERS IN GIVEN RANGE - C PROGRAMMING

  Рет қаралды 128,127

Sundeep Saradhi Kanthety

Sundeep Saradhi Kanthety

Күн бұрын

Пікірлер: 131
@t.dileepak4296
@t.dileepak4296 6 жыл бұрын
All credits go to you sir. Now I undetstood how the logic works. Thank you very much sir
@thebudkellyfiles
@thebudkellyfiles 6 жыл бұрын
Been working on this and this vid helped me get it. You always come through. Thanks!
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
Thank you for following my sessions.
@binayakpurohit
@binayakpurohit 4 жыл бұрын
Second loop should be j
@NSamuel10000
@NSamuel10000 2 жыл бұрын
Why loop j ALWAYS start for 1 each iteration
@NSamuel10000
@NSamuel10000 2 жыл бұрын
Explain to me please !help me!
@NSamuel10000
@NSamuel10000 2 жыл бұрын
I am confused
@ashuashwini2035
@ashuashwini2035 4 жыл бұрын
That's not j
@amarjeetbhatia6508
@amarjeetbhatia6508 4 жыл бұрын
That's already shown in video man
@gkguru6830
@gkguru6830 4 жыл бұрын
yes sir initially mentioned is exactly correct. j
@kalyanachakravarthi2736
@kalyanachakravarthi2736 4 жыл бұрын
@@gkguru6830 we need include 'i' too in the body function, that's why we need to include only one closing bracket after count++, am I right?
@Harshitha-hi1uj
@Harshitha-hi1uj Жыл бұрын
Your teaching is so good sir. I thank you so much for teaching so well. Please make many more videos sir, that helps a lot.
@martinsin9775
@martinsin9775 4 жыл бұрын
Great! Tones of detail!! Super!!
@pindisrinivas1157
@pindisrinivas1157 2 жыл бұрын
thank you so much sir,we want more examples expecting from you sir....thanks for your dedication ..😍
@aiswarya3461
@aiswarya3461 6 жыл бұрын
Thank You Sir for kindling the interest in me towards programming !!!
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
Hi aiswarya Thanks for your interest towards our channel and share my sessions with your friends and keep following our channel and don't forget to subscribe to our channel.
@krishnareddykrishnareddy3076
@krishnareddykrishnareddy3076 6 жыл бұрын
Thank you sir Continue sir... Your explanation is very good 👌👌👌👌
@manojmovieinfo6838
@manojmovieinfo6838 3 жыл бұрын
Superr sir simple solution it helps me a lot
@vinayakpomendkar8948
@vinayakpomendkar8948 2 жыл бұрын
Very helpful sirji please share more videos to us thanks
@bimalmurali2781
@bimalmurali2781 4 жыл бұрын
Very helpful. Explained to the deep of the program...
@You-ec2pi
@You-ec2pi Жыл бұрын
Thankyou so much sir, you are the best.I like the way you are teaching it"s help us a lot. Can you please make the video on github.....please sir
@volkangundogdu1008
@volkangundogdu1008 4 жыл бұрын
super sweat and dedicated way of teaching !
@701jyothiswaruban7
@701jyothiswaruban7 3 жыл бұрын
superb explanation, thanks sir
@yeddulalokesh7500
@yeddulalokesh7500 2 жыл бұрын
Thank you So much , it is helpful for me.
@prashanthagurla3376
@prashanthagurla3376 3 жыл бұрын
In j loop j
@dharanisana1483
@dharanisana1483 5 жыл бұрын
Thank u so much sir....ur way of explanation is crystal clear...keep doing videos like this
@vishakhasharma9385
@vishakhasharma9385 6 жыл бұрын
Thanku so much . Such a lucid explanation😊👍
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi vishakha thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
@arjun9353
@arjun9353 4 жыл бұрын
Thanks alot sir......hope further videos in future would be usefull ..
@aniketpandey2007
@aniketpandey2007 5 жыл бұрын
Although this problem can be solved in lesser space complexity, I must remark very well explained sir!!
@sridharreddy4868
@sridharreddy4868 3 жыл бұрын
Sir you are explaining is very good but what you are explianed program just compile it sir once
@siva-vw8us
@siva-vw8us 6 жыл бұрын
Thank you sir,and you have to explain more programs
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi sivaleela thanks for watching my sessions and sure i will do more videos on programs.
@chipora3678
@chipora3678 3 жыл бұрын
int flag = 0; should be declared inside first for loop to get the output as shown in above example!
@fashion2508
@fashion2508 5 жыл бұрын
nice explanations
@sundeepsaradhi
@sundeepsaradhi 5 жыл бұрын
Hi Thank you for your support towards our channel share our channel with your friends and keep following our channel.
@brundashekar8460
@brundashekar8460 6 жыл бұрын
Nice explanation sir
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
Hi brunda Thanks for your interest towards our channel and share my sessions with your friends and keep following our channel and don't forget to subscribe to our channel.
@akhilkumarbaratam3335
@akhilkumarbaratam3335 6 жыл бұрын
tq u so much . Such a lucid explanation
@dhruvsy7370
@dhruvsy7370 5 жыл бұрын
Thank you sir for this video Plzz make such more
@sangeeth810
@sangeeth810 5 жыл бұрын
Good wayy of teaching
@jasdeepkaur1781
@jasdeepkaur1781 4 жыл бұрын
Hey!!! Can uh please explain it by using function 🙄🙄
@chinthasharada570
@chinthasharada570 3 жыл бұрын
J‹=i...is the correct
@gousiyashaik5665
@gousiyashaik5665 4 жыл бұрын
Thank you sir
@ramyagudivaka4944
@ramyagudivaka4944 6 жыл бұрын
In the given series 1,2,1,3,2,5,3,7,5,11,8,13.......odd terms form fibinocci series and Even terms form prime numbers.please tell me the program to generate nth term
@bijayalaxmipatra2974
@bijayalaxmipatra2974 3 жыл бұрын
Sir jayganath,,, sir you have to put in inner loop j
@sanjaybliospartan2317
@sanjaybliospartan2317 6 жыл бұрын
Awesome!!!
@narpathrajpurohit9915
@narpathrajpurohit9915 6 жыл бұрын
Sir u forget about the prime number intervals
@ragavipandi9698
@ragavipandi9698 5 жыл бұрын
Super Sir😎😎😎
@Nithin_1367
@Nithin_1367 2 жыл бұрын
Why we are taking flag=0 in inner for loop.
@Butterfly-oy5tr
@Butterfly-oy5tr 3 жыл бұрын
Sir.. Flag is a just variable..I'm right.. We can right any name to replace flag
@sundeepsaradhi
@sundeepsaradhi 3 жыл бұрын
Yes you can give any name
@mohammedakhil10
@mohammedakhil10 Жыл бұрын
What is flag and what is counter?
@kutumbakavarsha6716
@kutumbakavarsha6716 6 жыл бұрын
Thank you very much sir
@editionpick7717
@editionpick7717 2 жыл бұрын
Sir there is mistake ...we can't initialize the flag value in int main ....the program will not executed....we have to initialize like that Int i,j,Flag; for(i=1;i
@editionpick7717
@editionpick7717 2 жыл бұрын
So sir please make video with execution of program in computer
@ELInventors
@ELInventors 2 жыл бұрын
Thanks mahn
@gandheyadagiri8039
@gandheyadagiri8039 2 жыл бұрын
sir program is comig error at for statement
@virangabandara674
@virangabandara674 4 жыл бұрын
Thnq sir 🔥🔥
@ritintiwari9788
@ritintiwari9788 4 жыл бұрын
Hii sir I don't understand the flag=0 as i am watching your video since starting and is not discussed in any video so its a humble request to make video on this and i don't understand the output 1%1=0 so value flag=0 so please clarify this dout
@sundeepsaradhi
@sundeepsaradhi 4 жыл бұрын
Flag is similar to variable
@ommsairam4181
@ommsairam4181 Жыл бұрын
🙏🙏🙏🙏🙏❤️❤️❤️❤️❤️
@gangadhargangadhar1381
@gangadhargangadhar1381 3 жыл бұрын
Didn't understand clear ga cheppandhi
@n.sarath4505
@n.sarath4505 2 жыл бұрын
How add sum of the prime Numbers?can u tell me sir.
@devivaraprasad1507
@devivaraprasad1507 4 жыл бұрын
sir what if we want know given number is a prime number ??
@manmohanpatnaik9557
@manmohanpatnaik9557 6 жыл бұрын
8.45 j>=i is correct...Not j
@amarjeetbhatia6508
@amarjeetbhatia6508 4 жыл бұрын
You are wrong man it is j
@AyanKumarManna
@AyanKumarManna 6 жыл бұрын
You don't need to run j upto n.. You need to run j upto sqrt(i).
@aarulive3213
@aarulive3213 3 жыл бұрын
How to find largest 9 digit prime number in c program
@anuragyadav8634
@anuragyadav8634 7 жыл бұрын
sir plz make video on function and plz hurry up sir
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
hi anurag definitely and before i have to complete strings concept. Immediately after Strings i will upload functions.
@anuragyadav8634
@anuragyadav8634 7 жыл бұрын
Tnq sir your teaching method is very good bu you should upload more video on main of c like as function,array,pointers
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
hi anurag and thanks for your interest towards our channel and i am uploading videos in an order till now i have covered upto one dimensional arrays and definitely i will upload the remaining soon.
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
This is the link of Functionskzbin.info/www/bejne/inarcpJ_rLOeaZY
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
hi ANURAG i would like to have a FEEDBACK ( in the form of video not more than 15 sec) from you towards our channel and my sessions.so that i will collect feedbacks from all and will upload in youtube, Send your valuable FEEDBACK to my WhatsApp number : +91 9885466061 (91 is the country code) waiting for your valuable feedback. kzbin.info SO MAKE A VIDEO WITH FEEDBACK ON OUR CHANNEL AND SEND AS SOON AS POSSIBLE
@sridhars3204
@sridhars3204 4 жыл бұрын
Sir, What is meant by flag? Why do we use flag suddenly? could you please explain?
@sundeepsaradhi
@sundeepsaradhi 4 жыл бұрын
hi flag is also a variable nothing new.
@sanjaynshreenivas1107
@sanjaynshreenivas1107 6 жыл бұрын
8:10 is 2
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi srinivas thanks for observation and i just written the condition wrong at that time j
@manmohanpatnaik9557
@manmohanpatnaik9557 6 жыл бұрын
Sundeep Saradhi Kanthety here j>=i is correct...
@Atharhashmisir
@Atharhashmisir 5 жыл бұрын
यदि आपको हिंदी में सीखना हो, तो मेरे चैनल पर ज़रूर देखे।
@zoterodisuke4398
@zoterodisuke4398 3 жыл бұрын
Please help me explain my code. I am confused at the for loop j because when I put j = 0, 1, 3, 5, I + 1. all these seems to work but I don't understand why it works. #include #include #define MAX 100 int main() { int isPrime[MAX]; int i, j, num; printf("Enter a number [more than 2]: "); scanf("%d", &num); for(i = 0; i < MAX; i++) { isPrime[i] = 1; } for(i = 2; i
@vinodvinny1309
@vinodvinny1309 3 жыл бұрын
How to count number of prime numbers? Sir
@SaiKiran-uu8ov
@SaiKiran-uu8ov 3 жыл бұрын
why we take flag== 2 only
@hellwalker8602
@hellwalker8602 4 жыл бұрын
You won't get the answer if you declare flag =0 outside for loop as you did in your case
@chipora3678
@chipora3678 3 жыл бұрын
Thanks brother
@chocoojay7479
@chocoojay7479 3 жыл бұрын
What is flag variable sir?
@Saikumarkusuma123
@Saikumarkusuma123 5 жыл бұрын
Sir, its not executing When i entering the number in result window It is getting back to the program
@kalyanachakravarthi2736
@kalyanachakravarthi2736 4 жыл бұрын
There might be an error in the loop function
@thecodinghubpoint6364
@thecodinghubpoint6364 3 жыл бұрын
write a program in c language user input the value (Hello) or output is (H*l*o).
@satyadodda2386
@satyadodda2386 7 жыл бұрын
sir plzzzz make a video on a program to check whether it is a palindrome or not using functions plzzzz sir
@sundeepsaradhi
@sundeepsaradhi 7 жыл бұрын
hi satya definitely i will try to upload the program soon with in two or three days.
@saineeraj1326
@saineeraj1326 4 жыл бұрын
I can't understand this can u explain the program in telugu
@goplay5936
@goplay5936 5 жыл бұрын
How to count prime numbers in 2d array?
@le-310harikrishna4
@le-310harikrishna4 3 жыл бұрын
What is flag sir
@htetwayyanpaing
@htetwayyanpaing 5 жыл бұрын
Hello Sir.Why Flag need to declare again under for loops.IF don't declare in that place the program doesn't work.I want to know Why flag was declare two times.Please.
@hanscesa5678
@hanscesa5678 5 жыл бұрын
Because in the inner loop, once the condition fails, it will go move outside and re-run the outer loop. So, if you did not declare your flag = 0, in the outer loop, then the flag will always contain 1 or 2 because of the inner loop. Just think of it this way: if the inner loop fails, the flag value will return to 0 to start again.
@sindhujasindhu6337
@sindhujasindhu6337 2 жыл бұрын
Cab we use count instead of flag?
@prasannaganesh2996
@prasannaganesh2996 6 жыл бұрын
For what we use flag
@ramyagudivaka4944
@ramyagudivaka4944 6 жыл бұрын
Sir please give the program to generate nth term of a prime number
@vinobavino9509
@vinobavino9509 2 жыл бұрын
Sir can we use count instead of flag?
@srisriguntaka248
@srisriguntaka248 2 жыл бұрын
Yes, you can use
@joseamithsebastian9494
@joseamithsebastian9494 3 жыл бұрын
my program didnt run all numbers are coming not prime
@bizay1982
@bizay1982 6 жыл бұрын
Sir what is the use of flag=o
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi its just like a variable and the name i have given as flag. thanks for your interest towards our channel and share my sessions with your friends and subscribe to our channel.Keep following our channel.
@byrrajuabhilashraju1822
@byrrajuabhilashraju1822 5 жыл бұрын
Same as count bro it aslo just counts the values
@pavithradevia6527
@pavithradevia6527 5 жыл бұрын
Flag is used to differentiate prime and non prime number
@vinothvaradharajan3063
@vinothvaradharajan3063 2 жыл бұрын
What is flag
@HamsterKombat0502
@HamsterKombat0502 6 жыл бұрын
I think j%i is correct instead of j%n
@dancewithfingers8687
@dancewithfingers8687 3 жыл бұрын
Im still not getting purpose of count
@rojnamcha179
@rojnamcha179 6 жыл бұрын
Sir plz c assignment papers solved kar dijiye na....
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi piyali roy post your doubts in the comment section so that i will clarify your doubts.
@slientpower_3661
@slientpower_3661 6 жыл бұрын
Sorry to ask 1 also prime no
@sreelathas585
@sreelathas585 4 жыл бұрын
1 is not a prime number because it has only one factor prime number must have two factors
@music_editz-i5d
@music_editz-i5d Ай бұрын
Can any one tell me about flag
@sanjanagurav1830
@sanjanagurav1830 6 жыл бұрын
Thanks sir .
@sanjayshelke8751
@sanjayshelke8751 4 жыл бұрын
For 1 flag is one and not work
@tejasgadekar7214
@tejasgadekar7214 6 жыл бұрын
You forgot else part
@sundeepsaradhi
@sundeepsaradhi 6 жыл бұрын
hi teja i think there is no use of else part in this program because here our problem statement is only to print all the primes in given range. i forget and written the else part in the program. Hope your doubt has been clarified.
@gkguru6830
@gkguru6830 4 жыл бұрын
program is for series printing , so "simple- if" is enough. If the program is for checking either A or B. You are correct. It require else part too.
@ananthreddy1677
@ananthreddy1677 3 жыл бұрын
ouput not getting sir
@sksaddam8775
@sksaddam8775 5 жыл бұрын
Sir your program is little worng please chek
@sathoshreddy
@sathoshreddy 3 жыл бұрын
Sir this vedio is not cler
@shrutimanaguli6026
@shrutimanaguli6026 3 жыл бұрын
Sir sorry I like ur all videos Bt this one is bad explanation
@raghupatrunishashank7388
@raghupatrunishashank7388 6 жыл бұрын
Thank you so much sir
23 - SUM OF INDIVIDUAL DIGITS OF A NUMBER - C PROGRAMMING
8:13
Sundeep Saradhi Kanthety
Рет қаралды 73 М.
49 - PROGRAM TO FIND GIVEN NUMBER FOR PRIME - C PROGRAMMING
18:22
Sundeep Saradhi Kanthety
Рет қаралды 54 М.
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 124 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 3,1 МЛН
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 41 МЛН
PRANK😂 rate Mark’s kick 1-10 🤕
00:14
Diana Belitskay
Рет қаралды 11 МЛН
C Program to Print all  Prime Numbers Between Two Numbers
8:37
ScoreShala
Рет қаралды 4,8 М.
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 1,6 МЛН
Prime Number Program | Logical Programming in C | Naresh IT
5:16
Naresh i Technologies
Рет қаралды 36 М.
prime number or not in c telugu | c programming | Program 48
7:31
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 124 МЛН