-------------------------xw

----------------------x

@kunalsaini8950 hey approach could be like this, factor n! into p and q such that hcf(p,q)=1 and p<q. so we calculate number of distinct primes in n!
let prime factorisation of n!= (p1)^x1 * (p2)^x2 (pk)^xk
now for each i, (pi)^xi can either go in p or q. hence 2^k ways. but as we want p<q. therefore only 2^(k-1) ways.

@kunalsaini8950 hey here is code snippet for this problem:
https://ideone.com/ukVA8T

@kunalsaini8950 bro we are not allowed to share our number ap chat pr puch lo.

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.