Prompt gamma activation analysis (PGAA) is especially sensitive for elements with high neutron-capture cross sections, like boron, which can be detected down to a level of ng/g. However, if it is a major component, the high count rate from its signal will distort the spectra, making the evaluation difficult. A lead attenuator was introduced in front of the HPGe-detector to reduce low-energy gamma radiation and specifically the boron gamma rays reaching the detector, whose thickness was found to be optimal at 10mm. Detection efficiencies with and without the lead attenuator were compared, and it was shown that the dynamic range of the PGAA technique was significantly increased. The method was verified with the analyses of stoichiometric compounds: TiB2, NiB, PVC, Alborex, and Alborit