A comparative study of interactions of shallow impurities with primary defects in oxygen- and carbon-lean moderately doped Si and Ge subjected to irradiation with 0.9 MeV electrons, 60Co gamma-rays, and 15 MeV protons at room temperature is presented and discussed. For the quantitative characterization of such interactions, changes in the total concentration of the original shallow group-V donor or group-III acceptor impurities in the irradiated materials are determined by Hall effect measurements over a wide temperature range. Losses of the shallow donor or acceptor states in the irradiated Si and Ge are indicative of their removal rates that can be used for estimation of production rates of primary defects interacting with the dopants. Some important factors affecting the interactions between primary defects and shallow impurities in Si and Ge are highlighted.