Colossus the Forbin Project for real.
https://en.wikipedia.org/wiki/Colossus:_The_Forbin_Project
"Colossus: The Forbin Project (originally released as The Forbin Project) is a 1970 American science-fiction thriller film from Universal Pictures, produced by Stanley Chase, directed by Joseph Sargent, that stars Eric Braeden, Susan Clark, Gordon Pinsent, and William Schallert. It is based upon the 1966 science-fiction novel Colossus by Dennis Feltham Jones.
The film is about an advanced American defense system, named Colossus, becoming sentient. After being handed full control, Colossus' draconian logic expands on its original nuclear defense directives to assume total control of the world and end all warfare for the good of humankind, despite its creators' orders to stop."
Based on the novel "Colossus"
https://en.wikipedia.org/wiki/Colossus_(novel)
especially this part:
"After the scientists activate the transmitter linking Colossus and Guardian, the computers immediately establish rapport with mathematics. They soon exchange new scientific theories beyond contemporary human knowledge, too rapidly for the Russians and Americans to monitor."
which ends with
"Colossus announces to the world its assumption of global control, and orders Forbin to build an even more advanced computer on the Isle of Wight, evicting its residents. While debating Colossus about its plans for improving humanity, Forbin learns of a nuclear explosion at a USNA missile silo; Colossus detected the sabotage and detonated the tampered warhead, and punishes the USNA by firing a Soviet missile at Los Angeles. Anguished, Forbin asks Colossus to kill him. Colossus assures Forbin that, in time, he and humanity will respect, and even love, Colossus. Forbin vows "Never!", but the novel ends with an ambiguous "Never?"