We denote the number of prime divisors of a number n by co(n), the number of prime divisors of n taking into account their multiplicity by ~(n), and put N(m, x,g) = I{ :n < = m} l, where g(n) = co(n) or g(n) = gt(n), and IAI is the number of elements of a set A.In 1917, Hardy and Ramanujan [1] proved the existence of constants Cl, c2 such that the inequalityholds for x _> 2. In the case where g(n) = co(n), the inequality is valid for any m, and for g(n) = f~(n) it is valid for m < (2 -5) log log x, 5 > 0. In the case where g(n) = f~(n), Hardy and Ramanujan proved, in fact,inequality (1) for m <_ (~q -5)log log x. More recently, Sathe [2] and Selberg [3] found the asymptotics of N(m, x, g) as x --+ ee. This result implies that (i) inequality (1) is valid for the mentioned values of m, and (it) estimate (1) is order-sharp for g(n) = co(n) if m _< bloglogx, where b is a positive constant, and for g(n) = f~(n) if m < (2 -5) log log x.Later on, the Hardy-Ramanujan inequality was applied in different problems and it was investigated to different kinds of generalizations. The most remarkable result was obtained by Halasz.Let E be an arbitrary nonerapty set of primes, p<_x,pEE and let co(N; E) and f~(n; E) be the number of prime divisors of n and the number of prime divisors of n taking into account their multiplicity, respectively, provided the divisors lie in E. Halasz [4] proved that the inequality cj( )xEm( ) N(m,z,g;E) = I{n:n < x,g(n;E) = rn}l < m!exp(E(x))(2) holds for m < (2 -5)E(x), and the inequality g(m, g; E) + g(m + 1, g; E) >_ m! exp(E( )) holds for 5E(x) < m <_ (2 -5)E(z), where 5 > 0, ca(5) > 0, c4(5 ) > 0, and g(n; E) = f~(n; E). Norton [5] proved that inequality (2) also holds for g(n; E) = co(n; E). As was shown in [6], the last estimate for N(m, x, fl; E) holds for the mentioned values of m.