Java Program to Check Whether a Number is Prime or Not with explanation | java prime number

Поділитися
Вставка
  • Опубліковано 8 січ 2025

КОМЕНТАРІ • 11

  • @KrushnaKatekhaye
    @KrushnaKatekhaye Рік тому +1

    i don't use to comment on any videos but after watching this video i am not able to stop myself from Appreciating your work . thanks for clearing my doubt bro....

  • @jefferyzira2647
    @jefferyzira2647 Рік тому

    you are the only person that explained this to me that I understand every step. thanks a lot

    • @TalentedDeveloper
      @TalentedDeveloper  Рік тому +1

      Thanks for your feedback 🙂

    • @jefferyzira2647
      @jefferyzira2647 Рік тому

      but sir when I run this program, the programs says "9" is a prime number

    • @TalentedDeveloper
      @TalentedDeveloper  Рік тому

      really 🥺? please let me check

    • @TalentedDeveloper
      @TalentedDeveloper  Рік тому +1

      I checked the code and it is working fine only.
      please run the below code github.com/talenteddeveloper/All-Java-Programs/blob/master/src/allPrograms/PrimeNumberCheck.java

    • @jefferyzira2647
      @jefferyzira2647 Рік тому

      thank u sir I saw my mistake

  • @smasherop3212
    @smasherop3212 Рік тому

    but what if we take 2 as input or 3 as input it will show it is non prime , but it is prime.

    • @TalentedDeveloper
      @TalentedDeveloper  Рік тому

      Please check the code in the description.
      I have checked using input as 2/3, able to get results as Prime number only