A former Democratic New Hampshire state representative from Nashua has been sentenced to 33 years in prison on child abuse charges.