Circular jail cell

why we took 12 and 36 as only factors
we could hv take any two numbers as example right?

and why we need to calculate factors to know

@shlok.sharma3 we need the number of factors to know if the jail cell will be opened at the end or not. if the cell number has odd number of factors, it will be open, if it has even number of factors then it will be closed. 12 and 36 are not factors, they were taken as example of cell numbers, you have to check for all numbers from 1-100

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.