Program to Check Prime Number in C (HINDI)

Поделиться
HTML-код
  • Опубликовано: 8 ноя 2024

Комментарии • 599

  • @nitikagupta8019
    @nitikagupta8019 7 лет назад +14

    Thnq so much sir 4 ur vdos. I cleared my O level exam of C language bcz of u...

  • @borissklyar1415
    @borissklyar1415 8 лет назад +2

    I propose much more simplier "matrix sieve" algorithm for finding prime numbers:
    In order to find all primes (up to a given limit) in the sequence S1(p)=6p+5,(p=0,1,2,3,...):
    Step 1a. Starting from 5 cross out each 5th member of the row of positive integersN(n)=0,1,2,3,4..., i.e remove the following integers: 5, 10, 15,...
    Step 1b. Starting from 5 cross out each 7th member of the row of positive integers, i.e remove the following integers: 5, 12, 19,..
    Step 2a.Starting from 23 cross out each 11th member of the row of positive integers, i.e remove the following integers: 23, 34, 45,...
    Step 2b. .Starting from 23 cross out each 13th member of the row of positive integers, i.e remove the following integers 23, 36, 49,...
    .........
    Step ia. Starting from (6i^2−1) cross out each (6i−1)th member of the row of positive integers.
    Step ib. Starting from (6i^2−1) cross out each (6i+1)th member of the row of positive integers.
    Remaining members of N(n) are indexes p of all primes (up to a given limit) in the sequence S1(p)=6p+5: p=0,1,2,3,4,...,6,7,8,9,...,11,..,13,14,....,16.....p=and primes are 5,11,17,23,29,...,41,47,53,59,...,71,...,83,89,...
    In order to find all (up to a given limit) primes in the sequence S2(p)=6p+7,(p=0,1,2,3,...):
    Step 1a. Starting from 3 cross out each 5th member of the row of positive integers, i.e remove the following integers 3,8,13,...
    Step 1b. .Starting from 7 cross out each 7th member of the row of positive integers, i.e remove the following integers 7,14,21,...
    Step 2a.Starting from 19 cross out each 11th member of the row of positive integers, i.e remove the following integers 19,30,41,...
    Step 2b. .Starting from 27 cross out each 13th member of the row of positive integer, i.e remove the following integers 27,40,53,...
    .........
    Step ia.Starting from (6i^2−1−2i) cross out each (6i−1)th member of the row of positive integers.
    Step ib.Starting from (6i^2−1+2i) cross out each (6i+1)th member of the row of positive integers.
    Remaining members of N(n) are indexes p of all primes (up to a given limit) in the sequence S2(p)=6p+7: p=0,1,2,..,4,5,6,..,9,10,11,12,...,15,16.... and primes are7,13,19,...,31,37,43,...,61,67,73,79,...,97,103,...
    C++ program:
    www.planet-source-code.com/vb/scripts/BrowseCategoryOrSearchResults.asp?lngWId=3&blnAuthorSearch=TRUE&lngAuthorId=21687209&strAuthorName=Boris%20Sklyar&txtMaxNumberOfEntriesPerPage=25

  • @akshatrajoriya2357
    @akshatrajoriya2357 4 года назад

    Sir aaap bhot badia padhate ho , most simplified programming channel on RUclips

  • @TechnicalBaniya
    @TechnicalBaniya 7 лет назад

    when i saw this video on youtube then I though who will waste 15 minutes because I already know the program of the prime no. but when i watched this video Now I am able to make the same program with optimized way.
    Thank You Sir.

    • @easytuts4youcom
      @easytuts4youcom  7 лет назад +1

      I'm very HAPPY to know this brother. Keep learning :)

  • @inderjeetkaur5382
    @inderjeetkaur5382 2 года назад

    Tnks sir muje ajj hi apka Chanel mila h jisko dekh kr muje c Easy lgi phli war tnq ❤️ sir ji please esi hi hmare lie video bnate rhy tnq ❤️ u sir tnq ❤️ alote ❤️

  • @Mysterious_fatness1
    @Mysterious_fatness1 6 лет назад +1

    Sir aapki video like krne k baad hi start krta hu,,,,obviously video would be excellent.

  • @shivrajsingh-qv3tl
    @shivrajsingh-qv3tl 5 лет назад +1

    You are the best....teacher for programing

  • @top_in_tech1
    @top_in_tech1 6 лет назад +6

    A.O.A sir you are very sweet teacher I am very happy to see your lectures and learns large data related of C language & C++ language thanks 💓 a lot..

  • @IQ.bosst244
    @IQ.bosst244 6 лет назад +1

    sir my name is fakhra ma just ap ke he video dakti ho muga bht zada pasnd ha ap ka lecture ap bht bht acha teach karta ha ma cs ke student ho or ma chati ho k mari programing bht ache ho or muga apke bht ache sumg ati ha

  • @girirajtomar519
    @girirajtomar519 7 лет назад +8

    I can understand your video easily .
    Thank you for teaching us.

  • @SBebi.4569
    @SBebi.4569 6 лет назад

    Thanks, apke video se sare concept clear ho jate hai sir i like it

  • @akhilanand298
    @akhilanand298 7 лет назад +2

    Proper reasoning for each step this is what conceptual analysis thanx for your great support sir

  • @awaismushtaq2579
    @awaismushtaq2579 6 лет назад

    You are also a best teacher of programming.
    I also learn more point to your video.

  • @khatariinsaan5284
    @khatariinsaan5284 4 года назад +3

    i don't know how to thanks you sir !!
    *A BIG SALUTE FROM ME* 😉👌👌👌😃🙌

  • @belalansari6195
    @belalansari6195 5 лет назад

    Doubt ko clear karne ke liye apka bahut Shukriya sir

  • @SmartProgramming
    @SmartProgramming 6 лет назад +3

    Sir the way u explain is fabulous, blessings for more tutorials 👍👍

  • @vishalverma-bf5ro
    @vishalverma-bf5ro 3 года назад

    You r the first teacher who make programming easy for me🙏🙏

  • @utkalikajena2244
    @utkalikajena2244 8 лет назад

    your teaching style is totally different from other and excellent.

  • @vivekpanwar2720
    @vivekpanwar2720 3 года назад

    Sir it is so amazing
    Wonderful sir
    Thankyou so much for your forever good teaching
    I think you are the best teacher in the RUclips for solving and understanding c

  • @proactivebehaviour308
    @proactivebehaviour308 5 лет назад

    Best way of teaching

  • @akashkhandelwal-altruistic5363
    @akashkhandelwal-altruistic5363 7 лет назад +1

    you are a best teacher I have lot of learn with you

  • @RajeshKumar-eh7vw
    @RajeshKumar-eh7vw 7 лет назад +1

    I always read your all videos because of you explain about all things very well and I want to learn full package of .Net. So I am requested you to make video about .Net.
    Thank in Advance!!

  • @rishavraj7318
    @rishavraj7318 7 лет назад

    bht AXA lga apse pdke sir.

  • @MukeshKumar-bg1li
    @MukeshKumar-bg1li 8 лет назад +7

    Sir the way u explain is fabulous

  • @mariyamamreen439
    @mariyamamreen439 3 года назад

    Thakuu so much sir ... 💖🤩🤩🤩🤩I have learned oop , pf from uh thankuuu so much .God bless uh

  • @amitbhardwaj4881
    @amitbhardwaj4881 7 лет назад +1

    thank u sir.your videos are awsm .Helped me to learn alot and also removed my fear about coding !!

  • @mansigohil6228
    @mansigohil6228 4 года назад +3

    Thank you for the video sir, can you also please make a video explaining prime number checking with recursion in C

  • @vinayakbhatt1052
    @vinayakbhatt1052 5 лет назад +2

    Thanks you sir for making this video 🙏

  • @KUMARSAMEER-jy4mp
    @KUMARSAMEER-jy4mp 2 года назад

    Thank you sir I am completely clear about this prime number 🥰🥰🥰🥰

  • @muddassir1975
    @muddassir1975 5 лет назад

    Very nice sir you are great God bless you.

  • @akhileshthete2130
    @akhileshthete2130 4 года назад

    Programming Baadshah ho aap, bahot dhanyawaad Sir ji!! __/\__

  • @reetarajbhar4309
    @reetarajbhar4309 6 лет назад

    Sir you are best teacher of cimputer

  • @tutuuuu718
    @tutuuuu718 4 года назад

    Thankyou so much sir ! I have seen many videos on utube for this ...and I have also seen -smart programming-..but I love this wayy...thnku

  • @interestinginfo860
    @interestinginfo860 7 лет назад +1

    Best sir
    Zindagi badal di apni sir
    Love you

    • @easytuts4youcom
      @easytuts4youcom  7 лет назад

      That's your modestly brother. Keep learning GOD BLESS YOU 😊

  • @princekhan5255
    @princekhan5255 8 лет назад

    awesome pandey g.i have become fan of you

  • @sundeepchaurasiya6013
    @sundeepchaurasiya6013 9 лет назад +7

    thanks sir ji ,I have learn alot,Which i could not got in class.

    • @easytuts4youcom
      @easytuts4youcom  9 лет назад +1

      +sundeep chaurasiya, You're welcome dear, keep learning :)

    • @surajharale4102
      @surajharale4102 4 года назад

      Nice explanation 👍👍😉👌👍

  • @technicalhelperamar1355
    @technicalhelperamar1355 5 лет назад +1

    Sir aapne bahut achchhe se explain kiya very helpful thank you sir

  • @arvindkanojiya8734
    @arvindkanojiya8734 8 лет назад

    sir aapka videos hame bahut madat karta h

  • @afsirlaghari3738
    @afsirlaghari3738 5 лет назад

    Thank you soooo much. It really works. I'm from Pakistan.

  • @rohitparte6313
    @rohitparte6313 8 лет назад +4

    Thanks sir !!! can we use else instead of goto label???

  • @daniyalsiddiqui8761
    @daniyalsiddiqui8761 6 лет назад +5

    Thankyou! you are doing good job.

  • @ahammedimtiaze
    @ahammedimtiaze 7 лет назад +3

    Sir,
    Thank you sir for your great solution of prime number. Recent when i am going run a program called prime factorialization or called prime factors... i couldn't found the correct answer. it will be very helpful for me if you make us understand the algorithm and program also
    Thank you again
    Ahammed Imtiaze

  • @_r_b_l_1
    @_r_b_l_1 4 года назад

    Really helpful thanku brother👍

  • @Kidstories994
    @Kidstories994 8 лет назад

    Great explanation sir........

  • @rxi-meditation
    @rxi-meditation 4 года назад

    goto end is very new for me. I understood sir. Thankyou!!!!

  • @sarathi8538
    @sarathi8538 3 года назад +1

    Thank you sir 😊 for teaching

  • @DiptiJoshi2415rjdj
    @DiptiJoshi2415rjdj 7 лет назад +28

    You are very good Sir. I got obvious understanding of what you have expalined. And its a great prestige to have you as you are explaining in my mother tougue.

    • @easytuts4youcom
      @easytuts4youcom  7 лет назад +6

      Thank you so much for your kind words. Keep learning. GOD BLESS YOU :)

    • @ms.d1444
      @ms.d1444 7 лет назад

      yes।।।i agree with ur complament।

    • @RahulKumar-vk7fw
      @RahulKumar-vk7fw 7 лет назад

      Deepti Joshi hii

    • @prabhatyadav5829
      @prabhatyadav5829 6 лет назад

      good

    • @yogitech5352
      @yogitech5352 6 лет назад

      Deepti Joshi hey try this code ..if(no%2==0)
      if u have other basic knowledge.

  • @priyankapathak4248
    @priyankapathak4248 4 года назад

    Sir bahut achha tutorial h

  • @GaneshAdh3
    @GaneshAdh3 5 лет назад

    Do no%2 and compare with sqrt (n0) and increase i until sqrt no then it is prime no if i>s then it is prime no

  • @geetanjalibiswal7233
    @geetanjalibiswal7233 3 года назад

    Many many thanks to u sir🙏☺️☺️

  • @IQ.bosst244
    @IQ.bosst244 6 лет назад

    you are very good Sir.

  • @musarratansari2817
    @musarratansari2817 5 лет назад +1

    Very helpful sir 👍
    Best teacher 🤗😊

  • @arvindkumarsharma4520
    @arvindkumarsharma4520 5 лет назад

    Sir apka method bhut easy h👌👌👌👌👌👌👌👌😍😍

  • @rupeshjadhav7284
    @rupeshjadhav7284 8 лет назад

    your tutorial is realy useful thans for making this tutorials.

  • @lucknowlucknow5185
    @lucknowlucknow5185 7 лет назад

    very clear description ...thank you sir ....

  • @studyroom5233
    @studyroom5233 6 лет назад

    Thanks for very good videos

  • @puneetsinghbedi3447
    @puneetsinghbedi3447 7 лет назад +2

    Thank you sir my confusion and question are solved really thank u and I subscribed and liked the video again thank you

  • @maheshrokade5
    @maheshrokade5 6 лет назад

    Brilliantly explained..thank you so much for making videos..and please keep making it... thanks once again..

  • @manishtechnicalclasses3340
    @manishtechnicalclasses3340 4 года назад

    Very very thank full video sir

  • @mrsoul7388
    @mrsoul7388 9 лет назад

    Thank you too much sir..Your videos are so helpful to me..I have a problem to print prime, factors of a number,Armstrong number ..You make a video tutorial about that I'll be highly obliged to you...

  • @hollywoodmoviehindihd134
    @hollywoodmoviehindihd134 5 лет назад

    Sir you are best

  • @NishanCreationNepal
    @NishanCreationNepal 6 лет назад

    Thanks i understand

  • @himanshujain1770
    @himanshujain1770 8 лет назад

    Very nice explanation..But I have one doubt like if you will divide 11 by 2 then you will get remainder also.so why we are considering its remainder and why we are checking it till 5..like you said we will chek it by 2,3,4..till 5..thanks..

  • @hiteshprasad8947
    @hiteshprasad8947 7 лет назад

    sir ur videos r very nice ....thank u soooo much ...its very helpful ....my teacher teaches same thing but i cant stand but i understood when u taught ....thant u sooooo much sir ...ur a great teacher

  • @Panku00000
    @Panku00000 7 лет назад

    very nice sir. Thank you

  • @akashkhandelwal-altruistic5363
    @akashkhandelwal-altruistic5363 7 лет назад +1

    I wish in future making lot of video in programming

  • @AshishKumar-wt2bq
    @AshishKumar-wt2bq 3 года назад +1

    To kya esme the if.. Else statement ka use kar sakte hai.......?

  • @rudrapratap3303
    @rudrapratap3303 4 года назад

    Best explained

  • @shreyashyadav4147
    @shreyashyadav4147 7 лет назад +1

    Thanks sir for teaching

  • @MuddasarAbbasOfficial
    @MuddasarAbbasOfficial 9 лет назад +8

    Sir Thank you Very Much you are doing a great job

  • @ajayaswal36393
    @ajayaswal36393 9 лет назад +4

    best explanation sirrrr
    thanks alot

  • @SurjeetSingh-wr9lt
    @SurjeetSingh-wr9lt 8 лет назад

    very good ,Sir ji

  • @muhammadyaqoob8000
    @muhammadyaqoob8000 9 лет назад +4

    sir ya " error: label 'end' used but not defined" a raha hy main c++ use kr raha hu

  • @sauravsaini214
    @sauravsaini214 6 лет назад

    You r great sir g

  • @yogitech5352
    @yogitech5352 6 лет назад

    sir ,we can excute this program by only one statement ,
    if(no%2==0)
    if{
    }
    else
    {
    }
    so for what this type of long program u tought us
    plz reply..

  • @fairojmohammad8703
    @fairojmohammad8703 10 лет назад +1

    thank you sir it is very useful...and clear..

  • @jayeshsuthar5590
    @jayeshsuthar5590 7 лет назад

    But sir instead of using for loop we can directly divide no.. By 2 and we get answer right?

  • @yogeshverma3723
    @yogeshverma3723 3 года назад +1

    Nice 👌 ☺

  • @akashmaurya6149
    @akashmaurya6149 7 лет назад

    sir i want learn programming but i'm not choose technology in difference technology
    plz u tell me deference between .net technology and java . who is best technology

  • @learnme7312
    @learnme7312 6 лет назад

    VERY GOOD SIR

  • @ashjaahmedkhan3254
    @ashjaahmedkhan3254 6 лет назад

    Sir aap kamal ho bs mera ek doubt he aap wo please bta denge?

  • @shreyadhondi6980
    @shreyadhondi6980 4 года назад

    Sir by using hoti it is showing compilation error,
    But with else it's working perfectly

  • @arpitanigam7859
    @arpitanigam7859 7 лет назад

    very much helpful

  • @meherm5637
    @meherm5637 4 года назад

    Fabulous sir 🌹👏👏👏

  • @mdqamarhashmi5036
    @mdqamarhashmi5036 7 лет назад

    Sir, mujhe ek do programming janna hai wo kaise kiya jaiye
    series:- 1-3+5-7+9
    And 1^1-4^4+7^7-10^10
    As soon as possible
    Thank u sir

  • @meetpatel3513
    @meetpatel3513 8 лет назад

    go to की जगह पे break use कीजिये सर 👍👍

  • @sakshitripathi3986
    @sakshitripathi3986 4 года назад

    Can we use if else statement instead of using go to statement

  • @vikitanayak3771
    @vikitanayak3771 8 лет назад

    yes tiku sinha u can use any variable

  • @Roytuhin
    @Roytuhin 9 лет назад +2

    sir can i get a video for ,check perfect number?

  • @cciecloud
    @cciecloud 6 лет назад

    Thanks sir..Great sir

  • @simranyadav4414
    @simranyadav4414 7 лет назад

    thanks sir bahut accha ...😊😊

  • @aeeshraja4468
    @aeeshraja4468 9 лет назад

    one tutorial for strong number..
    please sir ur learning skilll re veryy niceee.

    • @easytuts4youcom
      @easytuts4youcom  8 лет назад

      +Ayesha Seemab, Thanks for your comment. See this tutorial for Strong Number:
      ruclips.net/video/GNh0s8HmqjA/видео.html

  • @MRHarsh985
    @MRHarsh985 8 лет назад

    great explaination

  • @amitkumar-sr7ni
    @amitkumar-sr7ni 7 лет назад +2

    Very helpful videos.thnkas sir

  • @hamxarao4307
    @hamxarao4307 8 лет назад

    thankuuuuu vikas pandey

  • @sbo-world
    @sbo-world 7 лет назад

    thanks sir ...... u r too good
    ....

  • @chandrikaprasad5245
    @chandrikaprasad5245 6 лет назад

    Nice I like it your teach

  • @learningsite6081
    @learningsite6081 6 лет назад

    nice job
    for even and odd - #learning site

  • @pradeepmishra3056
    @pradeepmishra3056 6 лет назад

    Sir, can you make videos of machine learning?

  • @Monster_Frankenstein
    @Monster_Frankenstein 9 лет назад +1

    Dear Sir would you please explain that it is necessary to take ansi as variable can we use another variables like x,y,z instead of ansi.