3-(Dimethylamino)-1-(pyridine-3-yl) prop-2-en-1-one (15.4 g, 0.088 mol), guanidine nitrate (10.7 g, 0.088 mol), and sodium hydroxide (3.5 g, 0.088 mol) were dissolved in n-butanol (120 mL). The mixture was heated to reflux with stirring and maintained for 16 hours. The reaction mixture was then cooled to room temperature. The solid was collected and washed with water (400 mL). The desired product was dried under vacuum for three days, and 12.7 g of yellow crystals of 4-(Pyridin-3-yl)pyrimidin-2-amine was obtained (yield: 85 %).