[Math] Finding how many numbers are divisible by a prime number

divisibilityprime numbers

I'm trying to figure out how I can find out how many numbers are divisible by a certain prime (eg 3) in a certain range, eg 0-10000. I think it has something to do with permutations, but I'm not really sure and kinda stuck.

Could you please point me in the right direction or so?

Best Answer

All you have to do is divide and throw away any remainder: $\textrm{floor}(10000/3)$