The question is to determine the number of positive integers up to $2000$ that are not divisible by $2,3$ or $5$ but are divisible by $7$. The answer is supposed to be $76$ but not sure how it was derived
I know that if the question was how many integers are not divisible by $2,3,5$ or $7$ then the answer would be $458$ and I know how to derive this.
You can solve this with inclusion-exclusion. First look for how many numbers are divisible by $7$: that's $\lfloor 2000/7 \rfloor = 285$, the integer part of $2000/7$.
Now exclude those that are divisible by $2$ (multiples of $14$; there are $\lfloor 2000/14 \rfloor$), divisible by $3$ ($\lfloor 2000/21 \rfloor$) and divisible by $5$ ($\lfloor 2000/35 \rfloor$).
This is excluding too many. Add back those that you removed twice or more: $\lfloor 2000/42 \rfloor + \lfloor 2000/70 \rfloor + \lfloor 2000/105 \rfloor$.
Finally, exclude again those that are divisible by all of $2,3,$ and $5$: these are multiples of $2\cdot 3 \cdot 5 \cdot 7 = 210$ and there are $\lfloor 2000/210 \rfloor$ such.