“Rise of the Planet of the Apes,” the prequel to the 1968 science-fiction classic, rose to the top of weekend box office with $54 million, according to studio estimates on Sunday.