155k views
1 vote
2) - How many integers between 1 and 500 inclusive are divisible by either 2, 3, or 5?

1 Answer

4 votes

366 numbers between 1 and 500 are divisible by 2, 3, or 5.

We can check this with the following code:

2) - How many integers between 1 and 500 inclusive are divisible by either 2, 3, or-example-1
User Carbonr
by
3.6k points