James Holmes, who killed 12 people and wounded dozens of others in a massacre at a Colorado movie theater in 2012, was sentenced to 12 life prison terms without parole, plus an additional 3,318 years on Wednesday, CNN reports.

The numbers represent one life sentence for each person who was murdered, with the additional thousands of years for a number of attempted murders, and for rigging his apartment with explosives in the hopes of ambushing authorities when they searched his home. (The explosives did not detonate.)

It was the maximum penalty Holmes, 27, could have received, after disagreement among the jurors about his mental state rendered him ineligible for the death penalty. A member of the prosecution team told CNN it is the fourth-longest sentence in American history. It was determined earlier this month that he would receive life in prison without the possibility of parole.

Dark Knight Rises star Christian Bale visits victims of Aurora shooting

Holmes has been diagnosed with schizophrenia and attempted to plead not guilty by reason of insanity, which the jury rejected. Last month, he was convicted of 24 counts of murder, 140 counts of attempted murder and an explosives charge.

"It is the court's intention that the defendant never set foot in free society again," Judge Carlos A. Samour Jr. said during the sentencing, according to CNN. "If there was ever a case that warranted a maximum sentence, this is the case. The defendant does not deserve any sympathy."

Holmes shot up a movie theater in Aurora, Colo. in July 2012 during a midnight screening of The Dark Knight Rises.