366 numbers between 1 and 500 are divisible by 2, 3, or 5.
We can check this with the following code:
4.4m questions
5.6m answers