Pls help with the code

what is wrong in my code
here is the code https://ide.codingblocks.com/s/199565

@pyash I guess you forgot to save the code. Please save it then provide me the link

here is the code https://ide.codingblocks.com/s/199566

@pyash s[i]b will not have the result you expect it to have, to get the number out of the string , write b(s[i]-‘0’).
Second thing you need not to find prime numbers for. The numbers should not be divisible by given numbers only.
To solve the problem start finding the CB numbers first of length 1 then 2 then 3 and so on, also maintain a list of already selected position.


Code for the above approach.
If this solves your problem mark it as solved.

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.