C Program To Find Prime Factors of a Number using Function

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • technotip.com/7813/c-program-...
    A positive integer is entered through the keyboard. Write a function to obtain the prime factors of this number.
    For Example, prime factors of 24 are 2, 2, 2 and 3. Whereas prime factors of 35 are 5 and 7.
    Prime Number: Any natural number which is greater than 1 and has only two factors i.e., 1 and the number itself is called a prime number.
    All the numbers which perfectly divide a given number are called as Factors of that number.
    Note: The user entered number need not be a prime number. But the factors of the number must be prime number.
    For example, 24 and 35 are not prime numbers. But the prime factors of 24 are 2, 2, 2, and 3. Here both 2 and 3 are prime numbers. Similarly, prime factors of 35 are 5 and 7. Both 5 and 7 are prime numbers.
    C Programming Interview / Viva Q&A List
    technotip.com/6378/c-programm...
    C Programming: Beginner To Advance To Expert
    technotip.com/6086/c-programm...

Komentáře • 17

  • @WW-hp1yt
    @WW-hp1yt Před 4 měsíci +1

    Hands down the best explanation i have found online. Thank you so much!

  • @eva42sh
    @eva42sh Před 2 lety +5

    i love when he uses visual logic explanation

  • @krishma1680
    @krishma1680 Před rokem +2

    Hats off!! Such an easy explanation 😃👍🏻❤️

  • @need_10k
    @need_10k Před 8 měsíci +1

    thank you❤

  • @yogeshchauhan9401
    @yogeshchauhan9401 Před rokem +2

    Nyc Explaination 👍

  • @rafeed4736
    @rafeed4736 Před 3 lety +3

    brilliant explanation. Thank you so much !
    P.S: You deserve way more subscribers :D

  • @adzplus1
    @adzplus1 Před 2 lety

    brilliant!
    Elegant algorithm to find the prime factorization. Thank you so much!

  • @linting
    @linting Před 3 lety

    Thank you for the brilliant explanation! :D

  • @akashdas172
    @akashdas172 Před 2 lety +1

    Thank youn so much
    looking for simple and acurate explanation

  • @maelstrom57
    @maelstrom57 Před 3 lety

    Very nice solution!

  • @karthickkumar1380
    @karthickkumar1380 Před 2 lety

    Nicee CLEAN EXPLANATION

  • @gourabdutta7086
    @gourabdutta7086 Před 2 lety +1

    Can we use if statement in place of while loop?

    • @pallapolulaxmilohita7879
      @pallapolulaxmilohita7879 Před 2 lety

      I don't think we can.......but if you're able to convert what the thing in while loop you wanna convert into if loop perfectly then....nothing can be wrong

  • @Arun-yb5gn
    @Arun-yb5gn Před 3 lety

    why we have written num >1 ?

  • @nagendrapp2213
    @nagendrapp2213 Před 4 lety +1

    hey bro Awesome Explanation Could please upload more videos and Start DSA playlist in c++ plz

    • @technotipDOTorg
      @technotipDOTorg  Před 3 lety +2

      Will do it bro. I'll have to finish producing some more C programming video tutorials, once that's done, I'll start with C++ and also "Data Structures & Algorithms" topics.

  • @icccricket1171
    @icccricket1171 Před 2 lety

    Sir
    Your teaching method is very best
    Sir why you not upload other languages tutorial like JavaScript,
    C++,data structure and alogrithm
    Sir these start languages. 👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍