Any sufficiently complex C++ program is indistinguishable from Prime Intellect. It just grows magic and begins to understand itself, using quantum homosexuality. And then it just grows robotic arms out of the monitor and yudkovsky passes the bong to it.