[CH3:1][C:2]1[C:6]2[N:7]=[CH:8][N:9]=[CH:10][C:5]=2[S:4][CH:3]=1.BrN1C(=[O:17])CCC1=O>C(Cl)(Cl)(Cl)Cl>[N:7]1[C:6]2[C:2]([CH:1]=[O:17])=[CH:3][S:4][C:5]=2[CH:10]=[N:9][CH:8]=1A mixture of 7-methyl-thieno[3,2-d]pyrimidine (1.2 g) and N-bromosuccinimide (2.9 g) in carbon tetrachloride (50 mL) was heated at reflux for 1 hour. The reaction mixture was then cooled, the solid formed was filtered off and the filtrate was concentrated under reduced pressure. The residue was suspended in water (10 mL) and the suspension was heated at reflux for 1 hour. The resulting mixture was basified by addition of a saturated aqueous solution of sodium bicarbonate and extracted twice with dichloromethane (100 mL). The combined organic layers were washed with brine, dried over anhydrous sodium sulfate, filtered and evaporated under reduced pressure. The solid residue was triturated with ethyl acetate and hexane and then collected by filtration to give 0.8 g of thieno[3,2-d]pyrimidine-7-carbaldehyde.