The tech tycoon and PM were joined by an audience that included Cabinet ministers, tech execs and the American rapper will.i.am.