Ezequiel Zayas, who gained national notoriety for secretly living inside a Navy family’s home on Oahu and planning to perform surgery on them and later killing a 62-year-old fellow inmate while awaiting trial, was sentenced Wednesday to 40 years in prison.