Madagascar 3 beat Prometheus at the box office.