The Prime Minister has encouraged young people to get involved with AI, saying the world is in the “foothills of a revolution”.