A Guatemalan court Wednesday sentenced a former soldier to 5,160 years in prison for the massacre of 171 people in what is considered one of the worst atrocities in that country's 36-year-long civil war.