Around 1980 I read a short story about the military's attempt to build an intelligent computer. The author put in several diagrams of how the computer would be made. In the story, the army keeps building what they hope would be intelligent computers but they keep blowing up, or disappearing along with the building they were constructed in. So they build a spaceship and to assemble the computer far away from people, and the space ship disappears.
The story is about one pilot of the space ship who assembles the computer, and it does achieve sentience, and takes the spaceship to a faraway planet. And the story ends with the now-sentient and all powerful spaceship telling the crew that it will take care of the people and will instruct them how they will in turn "WorShip" the spaceship.