Doubt in A Factorial Problem

Here we have to find max value of x such that n! % (k^x)=0;
Why can’t we simply find n! and find the number of times we can divide it by k and hence get max value if x??

hello @sahilkhan2312000131

we cant compute n! na, its very big number no datatype can accomodate it.

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.