Let q≥2 be an integer and Sq(n) denote the sum of the digits in base q of the positive integer n. It is proved that for every real number α and β with α<β,
where v(n) is either or , the number of distinct prime factors and the total number of prime factors p of a positive integer n such that (a,b∈Z, b≥2). This extends the results known through the work of P. Erdős and C. Pomerance, M.R. Murty and V.K. Murty to primes under digital constraint.