A computer administrator upset over the possibility of losing his job planted an electronic “bomb” in the systems of one of the nation’s largest prescription drug management companies, prosecutors said Tuesday.

If the so-called “logic bomb” had gone off at Medco Health Solutions Inc., it would have wiped out critical patient information, authorities said.