Java program to check Number is Prime or Not | Learn Coding

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024

ความคิดเห็น • 136

  • @RehmanMansab-g1k
    @RehmanMansab-g1k 3 วันที่ผ่านมา

    Wow! how easy this method is to check if the number is prime or not. Thank you so much bro!

  • @reveal5081
    @reveal5081 ปีที่แล้ว +40

    Hara Hara mahadeva

    • @humanoo7
      @humanoo7 7 หลายเดือนก่อน

      Har jagah bakchodi mat kar yaaro

    • @reveal5081
      @reveal5081 7 หลายเดือนก่อน

      @@humanoo7 kyu gand jalri eh kya

    • @techniqoftoday7476
      @techniqoftoday7476 6 หลายเดือนก่อน +1

      Phir baikaiti start kar diya tumne
      Parso tumko samjhaye the baat dimag me nahi ja raha re tumhara chotta 😡😡@humanoo7

    • @techniqoftoday7476
      @techniqoftoday7476 6 หลายเดือนก่อน +2

      Har har mahadev🚩🚩🚩

    • @Pravinkullu-p3c
      @Pravinkullu-p3c 2 หลายเดือนก่อน

      Jita jita mahadev

  • @gaminginsaan2469
    @gaminginsaan2469 3 ปีที่แล้ว +3

    Wow sir i appreciate your teaching. I understood everything sir🙏🙏

  • @ritikasingroli2627
    @ritikasingroli2627 11 หลายเดือนก่อน +1

    Sir, ek dum badhiya samjhaya
    धन्यावद

  • @thrineshpandavula7968
    @thrineshpandavula7968 7 หลายเดือนก่อน

    Finally I got this type of explanation clearly with pen© how it execute❤

  • @ammarasalgar585
    @ammarasalgar585 2 ปีที่แล้ว +3

    Thankyou soo much sir for making our java learning easy 🙏🙏🙏..... Ur videos are really helpful 💯💯

  • @riyasingh5505
    @riyasingh5505 ปีที่แล้ว +1

    Thank you sir. You explained in the best way. 👏🏻

  • @kratikagupta54
    @kratikagupta54 2 ปีที่แล้ว +10

    "*Thank you*sir for being teached us this thing as i was soo confused but after seeing this i am. Not confused "thanks a lot

    • @dilshad51
      @dilshad51 ปีที่แล้ว

      Yeah

    • @saifkhan3242
      @saifkhan3242 ปีที่แล้ว

      Same here
      Count++ confused me 😢

    • @mampilahiri3441
      @mampilahiri3441 ปีที่แล้ว

      Teached....what is the meaning of teached there is no such English

  • @abhigyanbaliyan67
    @abhigyanbaliyan67 ปีที่แล้ว

    thank you sir your explanation is very nice. And I love your wonderful hand writing. Thank you very much sir.

  • @Dkp5398
    @Dkp5398 4 หลายเดือนก่อน +1

    very nice expalian

  • @ayushjoshi7817
    @ayushjoshi7817 2 ปีที่แล้ว +1

    Thank you for this explanation it helped me a lot.....🙏🙏😊😊

  • @uk02gaming84
    @uk02gaming84 ปีที่แล้ว

    💕💕very easy💕 by the help of learn coading 💕💕💕

  • @sumithreddy1032
    @sumithreddy1032 2 ปีที่แล้ว +1

    thank you nsir for making me this understand and helping a lot of students ❤

  • @anjalidabhade2298
    @anjalidabhade2298 3 ปีที่แล้ว +16

    Aise he vdos banate rahe..

    • @LearnCodingOfficial
      @LearnCodingOfficial  3 ปีที่แล้ว +8

      Please Share sister 🙏🙏🙏
      Aur koi bhi doubts ho to comment kro

  • @sudamcharanparida4561
    @sudamcharanparida4561 ปีที่แล้ว

    Thank you Bhai you explain best no other youtuber explain best continue Bhai continue I kept in my computer exam 91/100 please continue like this Bhai il

  • @theperfectmixvlogs4714
    @theperfectmixvlogs4714 19 วันที่ผ่านมา

    Thank you so much you explain so wellll
    😊

  • @RutikAutade
    @RutikAutade ปีที่แล้ว +1

    Excellent Sir❤❤

  • @pallaviprajapati4238
    @pallaviprajapati4238 2 ปีที่แล้ว +1

    😍👌🏻Nice
    I can easily understand now..

  • @thesatyamfacts777
    @thesatyamfacts777 ปีที่แล้ว

    Sir aap bahut bhadiya samjate han 🎉❤❤❤❤❤❤❤

  • @g_kannan3016
    @g_kannan3016 2 ปีที่แล้ว +3

    I try to understand...but not much familiar with ur mother tongue try to present a important keywords in english to understand all of us..hope u got it 😍🔥

  • @AryanSahilbishtBisht
    @AryanSahilbishtBisht 10 หลายเดือนก่อน +1

    Thank you Sir

  • @snehapal3758
    @snehapal3758 6 หลายเดือนก่อน

    well explained thank you so much.

  • @kalamsyed7245
    @kalamsyed7245 ปีที่แล้ว

    Excellent explain sir

  • @pragatii9054
    @pragatii9054 2 หลายเดือนก่อน

    Thank you 😊so much

  • @Unknown-zw1by
    @Unknown-zw1by 2 ปีที่แล้ว

    In int datatype there it is not 'n' variable it should taken as 'i' variable in that programme.

  • @samiranroyy1700
    @samiranroyy1700 2 หลายเดือนก่อน

    thank you sir😃

  • @yashjadhav6157
    @yashjadhav6157 2 ปีที่แล้ว

    Thank you so much Sir

  • @ipsitapriyadarsini4948
    @ipsitapriyadarsini4948 ปีที่แล้ว

    Thank you thank you so much

  • @tejaswinipawar5748
    @tejaswinipawar5748 ปีที่แล้ว

    Thank you so much 👍❤️

  • @takeaction620
    @takeaction620 3 ปีที่แล้ว

    Thank you bro... helpful video

  • @ss-143-ss
    @ss-143-ss ปีที่แล้ว

    Wow sir you are legend

  • @factopedia2256
    @factopedia2256 2 ปีที่แล้ว +2

    You should write this in line 11👉🏻👉🏻 n=r.nextInt();
    In spite of n=ref.nextInt();

  • @trendingshorts8092
    @trendingshorts8092 ปีที่แล้ว +1

    nice

  • @Jarvis_IT
    @Jarvis_IT หลายเดือนก่อน

    thanks sir

  • @AnkitKumar-uw7he
    @AnkitKumar-uw7he ปีที่แล้ว

    So nice sir ji

  • @nikhil78980
    @nikhil78980 7 หลายเดือนก่อน

    Sir can we write even public class A for Class a? Plzz anyone reply

  • @kainaatmakhani6550
    @kainaatmakhani6550 2 ปีที่แล้ว

    good job

  • @amansingh-sv1js
    @amansingh-sv1js 9 หลายเดือนก่อน +1

    bhai code aadha hi sahi hai ye 9 ko bhi prime dikhaega

    • @AbuFaisal-si6nc
      @AbuFaisal-si6nc 2 หลายเดือนก่อน

      Nhi...sahi hai code...kar ke dekh lo..

  • @whitedevil-xm4ug
    @whitedevil-xm4ug ปีที่แล้ว +1

    😊👍🏻👍🏻👍🏻

  • @Shreee_fact
    @Shreee_fact 11 หลายเดือนก่อน

    🔥❤

  • @gamerworld4464
    @gamerworld4464 2 ปีที่แล้ว

    Nice

  • @manjarijha7755
    @manjarijha7755 2 ปีที่แล้ว

    best

  • @royalmechanical570
    @royalmechanical570 2 ปีที่แล้ว

    Thanks

  • @Zxcvbnmrajpatel_2106
    @Zxcvbnmrajpatel_2106 2 ปีที่แล้ว

    👍👍

  • @shubhamgalande9619
    @shubhamgalande9619 ปีที่แล้ว

    simple logic

  • @spaceandtechnology5214
    @spaceandtechnology5214 2 ปีที่แล้ว

    👍🏻

  • @gauravkshirsagar4927
    @gauravkshirsagar4927 ปีที่แล้ว

  • @gamesffun
    @gamesffun ปีที่แล้ว

    waah dada

  • @PILLUDAS100
    @PILLUDAS100 ปีที่แล้ว

    Sir jara 1 bhi leke dekhe kya show kar raha hai

  • @RahulSah-ke6if
    @RahulSah-ke6if ปีที่แล้ว

    Really Good but this logic cant able to check number 1

    • @1543_T
      @1543_T ปีที่แล้ว +1

      It does

  • @mrutyunjaysambalad7305
    @mrutyunjaysambalad7305 2 ปีที่แล้ว

    Hello sir plz plz explain with dry run table

  • @RajChauhan-iu3dc
    @RajChauhan-iu3dc 9 หลายเดือนก่อน

    Par vo count variable kyu banaya hai 🤔

    • @LearnCodingOfficial
      @LearnCodingOfficial  9 หลายเดือนก่อน +1

      Kuki prime number khud se aur 1 se divisible hota h yaani 2 case aaye hmare pass... to ussi ko count se point kr rhe h ki agr count 2 hua to prime 😊

  • @Decodetricks_By_Ayush
    @Decodetricks_By_Ayush 2 ปีที่แล้ว

    Confusing code likha tumne

  • @namratabose3752
    @namratabose3752 2 ปีที่แล้ว

    Please sir reply

  • @mohitsainisaini181
    @mohitsainisaini181 ปีที่แล้ว

    it is wrong

  • @arijitkoley4036
    @arijitkoley4036 ปีที่แล้ว

    import java.util.Scanner;
    public class primeornot{
    public static void main(String args[])
    {
    Scanner sc = new Scanner(System.in);
    System.out.println("enter the value of n: ");
    int n = sc.nextInt();
    int count=1;
    for(int i=1;i

  • @nishantnigam9263
    @nishantnigam9263 2 หลายเดือนก่อน +4

    Thanks sir mujhe yhi program samjh me nhi ata tha ab bhoot acche se samjh a gya thankyou a lot 😊

  • @Rohan_hazra
    @Rohan_hazra 2 ปีที่แล้ว +1

    Thank you sir

  • @omkaravghade9732
    @omkaravghade9732 4 หลายเดือนก่อน

    Very nice explanation

  • @anandkumarupadhyay129
    @anandkumarupadhyay129 2 ปีที่แล้ว +10

    Thank u for all the things that u have provided to us for making our java best👍

  • @maninderkaur-qy6ct
    @maninderkaur-qy6ct ปีที่แล้ว

    Thank you sir

  • @priyanshumahur2656
    @priyanshumahur2656 ปีที่แล้ว +2

    Really a nice video.

  • @Rohan_Ladva
    @Rohan_Ladva 2 ปีที่แล้ว +2

    Sir why 11 number is printing not prime number.plz provide solutions

  • @maheshdeore7330
    @maheshdeore7330 ปีที่แล้ว +1

    Nice Explanation

  • @takeaction620
    @takeaction620 3 ปีที่แล้ว +1

    Output nehi aa rahe hai... please help kariye brother

  • @madnaprashanth3534
    @madnaprashanth3534 2 ปีที่แล้ว +1

    You are India's bestest program explainer..

  • @ShlokGupta-h1l
    @ShlokGupta-h1l หลายเดือนก่อน

    Agar 4 lete to bhi sahi ho jayega plz explain

  • @hosteldays3509
    @hosteldays3509 ปีที่แล้ว

    PLease koi btao n bhai Count ++; kyu use kar rahe hm or
    if(count == 2) yeh kyu uuse kiye

  • @deliveryboy786
    @deliveryboy786 6 หลายเดือนก่อน

    vs code main 7 dene per 7to result print ho rhe hai

  • @SOURABH_LIVE_FF
    @SOURABH_LIVE_FF ปีที่แล้ว

    nice

  • @jaykumarkota3161
    @jaykumarkota3161 ปีที่แล้ว +1

    Super explaination ❤️

  • @Suraj.ku2001
    @Suraj.ku2001 ปีที่แล้ว +1

    bhai aapka logic galat hai ye kyu ki 2 prime no. hai aur aapka 2 not prime no bta raha hai

  • @EnthusiasticKangaroo-kh3gy
    @EnthusiasticKangaroo-kh3gy 2 หลายเดือนก่อน

    Nice video

  • @sachidanandapallai2970
    @sachidanandapallai2970 7 หลายเดือนก่อน

    import java.util.Scanner;
    class PrimeNumber
    {
    public static void main(String[] args)
    {
    int n,count=0;
    System.out.println("Enter an integer Number");
    Scanner sc=new Scanner(System.in);
    n=sc.nextInt();

    for (int i=1;i

  • @ankithareddy4497
    @ankithareddy4497 ปีที่แล้ว +1

    Hi Ankit.
    Hope your doing good, i tried executing this program but i not getting correct answer
    can you correct me where exactly i missed.
    public class Primenum {
    public static void main(String[] args) {
    int n, count = 0;
    System.out.println("enter any num");
    Scanner r = new Scanner(System.in);
    n = r.nextInt();
    for (int i=2; i

    • @ankithareddy4497
      @ankithareddy4497 ปีที่แล้ว

      i am not getting error but result is wrong

    • @LearnCodingOfficial
      @LearnCodingOfficial  ปีที่แล้ว

      Close the loop body after count increment I mean count++

  • @rahulshinde-wv4cj
    @rahulshinde-wv4cj ปีที่แล้ว

    Hi Sir, the way you explain are really awesome ..... i searched for 1 to 100 prime number video but i could not find it... if you have already created it please share the link with me . if not , please create a video on that like this video

  • @memyselfandi9246
    @memyselfandi9246 ปีที่แล้ว

    What is this software, I code in vs code and although there is resemblance b/w them, the code looks so different.

  • @aayushdahake7652
    @aayushdahake7652 11 หลายเดือนก่อน

    for (int i = 2; i

  • @abhisriadhya
    @abhisriadhya 6 หลายเดือนก่อน

    Thank you for the clear explanation. I had always been confused about this program, but now I understand it at once.

  • @pritikamble6978
    @pritikamble6978 2 ปีที่แล้ว +1

    Thank you so much sir very useful video

    • @LearnCodingOfficial
      @LearnCodingOfficial  2 ปีที่แล้ว +1

      Most wlcm, any questions you can ask on page or telegram

  • @rajesh-sharmaonly
    @rajesh-sharmaonly 6 หลายเดือนก่อน

    You are a great teacher Iam inspired by your teaching

  • @akashmane2637
    @akashmane2637 2 ปีที่แล้ว

    Really helpful and logic is cool bro♥️♥️♥️♥️♥️♥️❤️❤️❤️

  • @anuragchaturvedi2672
    @anuragchaturvedi2672 2 ปีที่แล้ว

    after many videos finally got easy steps
    thanks for this

  • @brainygamer5728
    @brainygamer5728 2 ปีที่แล้ว

    Happy number ka program bana dijiye na

  • @sonalgupta791
    @sonalgupta791 2 ปีที่แล้ว

    superb.. Thanks a lot

  • @ravisagar9856
    @ravisagar9856 2 ปีที่แล้ว

    Thank you so much sir 🙏✨🙂

  • @stumble_gamers
    @stumble_gamers ปีที่แล้ว

    Sir agar hm input 1 krte hai toh error ata hai

  • @sitaramhanuman483
    @sitaramhanuman483 2 ปีที่แล้ว

    Tysm brother👊🏻❤️

  • @Sam66226iopp
    @Sam66226iopp 10 หลายเดือนก่อน

    Thanks sir got it

  • @AishwaryaChannur
    @AishwaryaChannur 10 หลายเดือนก่อน

    tq sir i got easily

  • @abhishekgorshi9822
    @abhishekgorshi9822 2 ปีที่แล้ว

    sir can you provide a program to check how many prime numbers are lies between 1 to 100

  • @namratabose3752
    @namratabose3752 2 ปีที่แล้ว

    Ye ap code eclipse pr krrhe h. N

  • @mohdajmal5457
    @mohdajmal5457 2 ปีที่แล้ว

    Bhaiya while loop sey batao bhai

  • @tusharneware4609
    @tusharneware4609 5 หลายเดือนก่อน

    This video is helpful for me to understand easily ❤

  • @anilkumargupta5237
    @anilkumargupta5237 ปีที่แล้ว

    Nice video...🎉🎉

  • @alivelianjalipriya9712
    @alivelianjalipriya9712 2 ปีที่แล้ว

    Thank you for explaining in detail 🤝

  • @nitingaddamwar741
    @nitingaddamwar741 ปีที่แล้ว

    Thank you😊

  • @sanmugapriya1178
    @sanmugapriya1178 2 ปีที่แล้ว

    U r really great sir

  • @feso5005
    @feso5005 ปีที่แล้ว

    great sir ji

  • @SurajSharma-fw5fg
    @SurajSharma-fw5fg ปีที่แล้ว

    Excellent 🙂