I tried running the code, but it outputs all the factors instead of only prime factors.
What does the code in naive approach does?
You can share your code using ide.codingblocks.com
- go to ide.codingblocks.com
- Save your code here
- A special url will be generated, share that url with me
I was making a mistake. It has been resolved now. Thank you.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

