Not so easy math

bitmasking question
please provide some hint to deal with time complexity

If you have a,b,c,d,e as your prime numbers and you want to make combinations, that lets take abc, lets now take bde…
You can make all combinations using a mask.
Numbers from 0 to 31 (in binary form) would help denoting which one to take.

for eg.
10110 = take a,c,d
01111 = take b,c,d,e
00000 = take none
11111 = take a,b,c,d,e

in this way bitmasking can be used.

after getting all mask how i will get to answer

How many numbers from 1 to 100 are div by 3 ?
Thats equal to 100/3.
Use the formula N/a to get the number of numbers till N which are divisible by a.

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.