C program to express a number as a sum of two prime numbers | #10 Coding Bytes

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

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

  • @FACEPrep
    @FACEPrep  3 года назад +3

    In the IsPrime function the return would be a flag. In the video you might see it as 'return IsPrime'. Please consider it as 'return flag'.

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

      Yes that I had noticed.

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

      Very nice concept thank you so much mam

  • @albinthomas7072
    @albinthomas7072 4 года назад +13

    1:17 First prime number you would encounter is 2

  • @shyamprakashm6325
    @shyamprakashm6325 4 года назад +7

    mam there is a mistake in is prime function you should run a loop from i=2;i

  • @mohammadabdullahaalforhad1375
    @mohammadabdullahaalforhad1375 10 месяцев назад

    Thank you so much. i can understand this solution.

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

    Simple,sort and best video 👍

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

    💯💯💯

  • @abishekbaiju1705
    @abishekbaiju1705 4 года назад +1

    Excellent tutorial. Thanks a lot

  • @ANURAG-qk8tw
    @ANURAG-qk8tw 4 года назад

    What if we need to find minimum number of prime numbers to represent a number N as sum of prime numbers. The number of prime numbers can be 3, 4 ,5 etc . How would i soove such kind of problem

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

    Thanks a lot, just what I was looking for

  • @kamleshmishra2560
    @kamleshmishra2560 2 года назад +1

    Very nice sister👍👍

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

    Nice explanation ❤️🔥

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

    Would like to have the same program, in javascript for console . Would be glad to have assistance

  • @SubashP-xq9ep
    @SubashP-xq9ep Год назад +1

    please delete the video or correct it and repload it ,please don't keep this video for views.

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

    Love this series. Thanks, Faceprep!

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

    How to write an algorithm to show a number as a sum of three prime no.?(in sosml)

    • @G007-e9p
      @G007-e9p 3 года назад

      did u figure out or not because I need help with it

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

    For 3 prime no. What we do?

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

    u said sum of two primes but u wrote given no is prime or not..or print prime numbers between that range

    • @FACEPrep
      @FACEPrep  4 года назад +1

      Hi, please watch the complete video. The logic to check if a given number can be expressed as the sum of two prime numbers or not is explained.

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

    In the function isprime() u should return the flag value!!! :}

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

      Thats correct buddy thanks for pointing it out.

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

    In isprime function we should flag1 why we are returning the isprime function

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

      bro just correct there is would be returned flag ...simple

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

    Bolivian Beimar Wilfredo Lopez solved the Riemann Millenium Problem 2021

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

    got the logic

  • @G007-e9p
    @G007-e9p 3 года назад

    how to express a number as a sum of three prime numbers

  • @rajaleelasatyakartheek9822
    @rajaleelasatyakartheek9822 4 года назад +1

    the above code is not working

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

      Hi! For the complete code, please check the link in the description box of this video. The code works perfectly fine.

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

    thanks

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

    Sorry but do you remember what were you going to teach us in this video??? And btw i shouldn't be equal to n because of this number will never be Prime... I hope you will be careful in your next video. Well tried👏👏

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

    Ist prime number is 2 Madam

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

    Got it 👍🏼
    Thxxx! ❣📍

  • @kamleshmishra2560
    @kamleshmishra2560 2 года назад +1

    💯💯💯