Welcome to HCM.
There is no chance of getting HIV through Masturbation
. Even with mutual masturbation and external contact with other's semen, the chances are very less.
Pearly penile papule has no clinical importance and the Pearly Penile Papule has no risk for HIV.
You can go for HIV test
with P24 Antigen test or HIV DNA PCR after 3-4 weeks of the risky sexual act or you can have antibody test (ELISA
, RAPID test) after 3 months.
Wish you good luck.