On the distribution of the digits of quotients of integers and primes