What is the Richest Country in Africa?

Even though Africa is the poorest continent in the world, Egypt then South Africa rank number 1 and 2 in their continent as ranked by Gross National Product.