C program to express a number as a sum of two prime numbers

  Рет қаралды 74,517

MySirG.com

MySirG.com

Күн бұрын

Пікірлер: 64
@anshulchatterjee7244
@anshulchatterjee7244 4 жыл бұрын
superb explanation technique thanks.
@0xtheM7
@0xtheM7 4 жыл бұрын
Sir thanks alot for these courses ....
@KirtanPatel552
@KirtanPatel552 2 жыл бұрын
Amazing explained this programme thank you for this 👍👍👍👍
@suvamroy9426
@suvamroy9426 8 жыл бұрын
Thanks a lot sir, your videos are life saving !! By the way can you provide the code "express a number as a sum of three/four prime numbers"? e.g:: 19=3+5+11 or 17=2+3+5+7
@lifeofsq5653
@lifeofsq5653 4 жыл бұрын
Sir you are genius !!!
@hary4065
@hary4065 4 жыл бұрын
wow, that feels great. when you code it yourself. All I needed to watch the first 5 minutes. and it is done
@anjneykumarsingh4461
@anjneykumarsingh4461 4 жыл бұрын
That's the main logic
@christinaarungeorge4364
@christinaarungeorge4364 4 жыл бұрын
yeah
@abstract_VnSn
@abstract_VnSn 5 жыл бұрын
Great explanation sir! Loved it.. Aap bahat achche kaam kr rehe hoo.. Free mein knowledge de rehe hoo... Take a bow.. Dil se..
@ashishmehtaofficial23
@ashishmehtaofficial23 8 жыл бұрын
Thanx A lot Sir... I'm Wating for this Video.. You are Great sir..
@kulwinderbhatoa5578
@kulwinderbhatoa5578 4 жыл бұрын
OMG⚡ what an explanation!!!!
@haveagreatdaywithpeace
@haveagreatdaywithpeace 6 жыл бұрын
Thanks alot Sir. It's really helped me alot
@anjneykumarsingh4461
@anjneykumarsingh4461 4 жыл бұрын
Can u help me after sir c practice session where should I practice
@anjneykumarsingh4461
@anjneykumarsingh4461 4 жыл бұрын
Source
@damagelyf
@damagelyf 7 жыл бұрын
i love to listen you.....sir..u r awesome
@christinaarungeorge4364
@christinaarungeorge4364 4 жыл бұрын
thank you it was useful, thanks
@starkendeavours7072
@starkendeavours7072 2 жыл бұрын
Sir, optimise the code. It may give TLE runtime error. The Logic is totally fine.
@sulekhanandi1116
@sulekhanandi1116 4 жыл бұрын
Bro, 2 is prime number.
@MrHowTo-cw2op
@MrHowTo-cw2op 6 жыл бұрын
amazing
@danishiqbal670
@danishiqbal670 7 жыл бұрын
Sir return(0) return(1) Q mention kiye?? Last ka function mein
@MaleAdaptor
@MaleAdaptor 4 жыл бұрын
I wish this was in English.. Could you add a translation?
@shivanipatel9960
@shivanipatel9960 7 жыл бұрын
sir how to calculate electricity bill in c language sir i am beginner so plz make video for this
@sumankumar3108
@sumankumar3108 2 жыл бұрын
Sir 2 is a prime number and 3 is a composite number
@padhumahi835
@padhumahi835 4 жыл бұрын
whether I search for programs urs will come first but I dont know hindi can u pls explain in English also pls😔
@Travel_brat
@Travel_brat 6 жыл бұрын
Sir why we have returned (0) and (1) in isprime function and also we dont have checked if x is prime or not ...
@kulwinderbhatoa5578
@kulwinderbhatoa5578 4 жыл бұрын
0 = false and 1= true
@rethsitha4438
@rethsitha4438 7 жыл бұрын
Thanks a lot of your videos
@misalchugh8901
@misalchugh8901 5 жыл бұрын
sir can you explain this code in python.......
@musicboom1994
@musicboom1994 2 жыл бұрын
thanks a lot sir
@prasanna8462
@prasanna8462 5 жыл бұрын
I want this video in english explanation
@tushartyagi3785
@tushartyagi3785 5 жыл бұрын
Function se or program btadete sir such as fabonacci series
@kuldeepmishra1206
@kuldeepmishra1206 7 жыл бұрын
sir ur vidios are awsome but going throgh nielit questions papers i m getting imense confused in c programming . while trying to sole pz tel me 1.5 For the following definitions char a[] = "Hello World!"; int i; Which of the following loop will print the output a s Hello World! A) for (i = 0; a[i] != '/0'; i++) printf("%s", a[i]); B) for (i = 0; a[i] != '/0'; i++) printf("%c", a[i]); C) for (i = 0; a[i] != '\0'; i++) printf("%s", a[i]); D) for (i = 0; a[i] != '\0'; i++) printf("%c", a[i]); and in the above programme in case of A if i put '/0'is repalced by any character such as // it gets infinite loop and if i put '\0' it gets only output 11 times ..why as i did in code blocks void main() { char a[] = "Hello World!"; int i=0; while(a[i]!='/0') { printf("%d",i); printf("%s ", a); getch(); } }and pz explain all the optoion..
@Addictionunlocked
@Addictionunlocked 3 жыл бұрын
Sir it is not working for 11 .. bcz 11 is not the sum of any two prime numbers
@sumanbharti122
@sumanbharti122 7 жыл бұрын
sir but mera to pura output show ho raha h means after 17+17 ke bad v show ho raha h but apke programm m to nahi hua ta jbki mn apka hi program execute kara ta kya problem h jo aisa show ho raha h
@ifthekar4415
@ifthekar4415 7 жыл бұрын
sir when we have to use return 0 and return 1 . I saw on google it say that in main() it's meaning is different and in function it's meaning is different but i did not understand totally so please explain in simple manner
@Shahed1823
@Shahed1823 3 жыл бұрын
Can you explain you're problem once again I can't understand your q.
@rangamdeka6178
@rangamdeka6178 2 жыл бұрын
@@Shahed1823 Bro why have Sir used do while loop can you explain?
@starkendeavours7072
@starkendeavours7072 2 жыл бұрын
@@rangamdeka6178 you need to check from (n+1)th number, for nextPrime. you could have use while loop too, in that case you need to increment n outside loop. here do while incrementing n without checking condition at first.
@JageshwarSah
@JageshwarSah 7 жыл бұрын
Could you plz provide Video lecture on Computer organisation and architecture, my preferred book in structured computer organisation by tenenbaun
@mysirgdotcom
@mysirgdotcom 7 жыл бұрын
Visit www.mysirg.com and see computer fundamentals course
@madhaviborhade9117
@madhaviborhade9117 7 жыл бұрын
Sir, when i am going to compile this program on turbo, system is asking prototype of nextprime and isprime function. pls. advise.
@persianhenry2897
@persianhenry2897 6 жыл бұрын
In c++ you have to include the function prototype top of the code.
@tarunpandey9640
@tarunpandey9640 4 жыл бұрын
Function ko declare nhi kiya shi se
@aniruddhabose3685
@aniruddhabose3685 6 жыл бұрын
Sir i didnt understand that while(!isPrime(n))
@haveagreatdaywithpeace
@haveagreatdaywithpeace 6 жыл бұрын
well I think u don't have proper knowledge of do while loop. In do while loop If the condition is true, the flow of control jumps back to the do portion. what we want to get here is next prime so if number is not prime jump back to do part and increment number by 1. If number is prime then jump out of the loop and return that next prime number. Have a nice day :-)
@geethikap6497
@geethikap6497 4 жыл бұрын
@@haveagreatdaywithpeace thankuuuu👍
@shivanigoswami2773
@shivanigoswami2773 4 жыл бұрын
@@haveagreatdaywithpeace but it does not work properly
@amaansiddiqui734
@amaansiddiqui734 4 жыл бұрын
@FANSasFRIENDS
@FANSasFRIENDS 3 жыл бұрын
Sir Ji ne aakhir kaar apna name add to Dictionary kr hi diya.😂😂
@rekhaasha4779
@rekhaasha4779 4 жыл бұрын
Sahi sums📲📲
@prableenkaur1098
@prableenkaur1098 4 жыл бұрын
i really needed it . (-:
@aryan_rai
@aryan_rai 8 жыл бұрын
Your videos are really good but you made a mistake, 2 is a prime number
@aryan_rai
@aryan_rai 8 жыл бұрын
Im really sorry I know I should have watched the whole video. Nevermind me I hava a tendency to get mad at things very easily. By the way you are the only Indian teacher I can rely on.
@usopgaming4634
@usopgaming4634 3 жыл бұрын
Ok
@cap.blue-97sama99
@cap.blue-97sama99 6 жыл бұрын
Thanks sir
@shubhamdubey7598
@shubhamdubey7598 7 жыл бұрын
what if n
@starkendeavours7072
@starkendeavours7072 2 жыл бұрын
make else statement, "Prime Sum not found!".
@dwaipayandey4729
@dwaipayandey4729 4 жыл бұрын
Error show ho raha hai
@indut9316
@indut9316 6 жыл бұрын
please explain in English
Star Pattern 27 Program in C Language
16:39
MySirG.com
Рет қаралды 44 М.
Program to check whether a number is Prime or not in C
18:47
MySirG.com
Рет қаралды 340 М.
Triple kill😹
00:18
GG Animation
Рет қаралды 16 МЛН
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 119 МЛН
Colorful Pasta Painting for Fun Times! 🍝 🎨
00:29
La La Learn
Рет қаралды 308 МЛН
C Program To Express A Number as Sum of Two Prime Numbers
14:02
C Program to count words in a sentence
29:24
MySirG.com
Рет қаралды 71 М.
Program to print all prime factors of a number in C
20:16
MySirG.com
Рет қаралды 95 М.
Program to calculate LCM of two numbers in C language
20:36
MySirG.com
Рет қаралды 223 М.
L4. Print all prime factors of a Number | Maths Playlist
18:53
take U forward
Рет қаралды 48 М.
Program to print all prime numbers between two numbers in C
16:12
Triple kill😹
00:18
GG Animation
Рет қаралды 16 МЛН