Of the integers $1, 2, 3, ..., 1000$, how many are not divisible by $3$, $5$, or $7$?
The way I went about this was
$$\text{floor}(1000/3) + \text{floor}(1000/5) + \text{floor}(1000/7)-\text{floor}(1000/(3\cdot5)) - \text{floor}(1000/(3\cdot7))-\text{floor}(1000/(5\cdot7))+\text{floor}(1000/(3\cdot5\cdot7))$$
which resulted in $543$ and then I subtracted that from $1000$ to get $457$.
I do not have an answer key so I was wondering if that was the right approach to the question. Any help or insight would be appreciated!
Your result of 457 is correct.
The different sets of numbers as table:
And as diagram: