In this paper, we study the sequence (f (pn))n≥1,where pn is the nth prime number and f is a function of a class of slowly increasing functions including f (x)=logb xr and f (x)=logb(x log x)r,where b ≥ 2 is an integer and r> 0 is a real number. We give upper bounds of the discrepancy D_{{N_i}}^*\left( {f\left( {{p_n}} \right),g} \right) for a distribution function g and a sub-sequence (Ni)i≥1 of the natural numbers. Especially for f (x)= logb xr, we obtain the effective results for an upper bound of D_{{N_i}}^*\left( {f\left( {{p_n}} \right),g} \right).