[Br:1][C:2]1[CH:3]=[N:4][C:5]2[N:6]([N:8]=[CH:9][CH:10]=2)[CH:7]=1.[I:11]I>C(#N)C>[Br:1][C:2]1[CH:3]=[N:4][C:5]2[N:6]([N:8]=[CH:9][C:10]=2[I:11])[CH:7]=1A mixture of compound 6-bromopyrazolo[1,5-a]pyrimidine (1 eq), ceric ammonium nitrate (0.6 eq), and I2 (0.6 eq) in acetonitrile (10 mL) was stirred over a period of 24 h at room temperature. The formed precipitate was filtered off, washed with acetonitrile, and recrystallized from acetonitrile. The filtrate was evaporated, and the product was extracted with dichloromethane. The latter was evaporated, and the residue was recrystallized from acetonitrile to give 6-bromo-3-iodopyrazolo[1,5-a]pyrimidine.