Sir,
At 15:11 in video(in dry run) the condition for outer while loop is not satisfied as the value of m has become 3 and value of p is 3 so p*p is not less than m but we still got the correct answer. So please explain how is it happening ??
Prime factorisation of a number
Please see code line 64
if(m!=1) factors.pb(m);
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.