Take any number from 1-1000 integers to calculate the probability that the data can be divided by 2 or 5

Take any number from 1-1000 integers to calculate the probability that the data can be divided by 2 or 5

There are 500 even numbers out of 1000
So the probability of being divisible by 2 is 500 / 1000 = 1 / 2
Even numbers that can be divided by 5 have been calculated
We only need to find the odd multiple of 5
That is the number of 5,15,45,. 995
(995-5) △ 10 + 1 = 100
The probability is 100 / 1000 = 1 / 10
So the probability of being divisible by 2 or 5 is 1 / 2 + 1 / 10 = 3 / 5