Answer
"I Have No Mouth, and I Must Scream" is a 1967 science fiction novella by Harlan Ellison. The story is set in the 27th century, after an AI-driven global nuclear war that has wiped out most of humanity. A group of five survivors are captured by AM, an omnipotent supercomputer, and tortured for their knowledge of nuclear war.