Inclusion exclusion concept- implementation

sir here in your code why the inner loop which contain j runs till 7 ??
why do you suppose that each number has only 8 bits not more

There are only 8 primes in our array, so we assign every prime a bit from 0 to 7.

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.

suppose the number of primes was 10, then we run a loop till 9 ?