Others have responded to this already, but I will point a couple of things out.
The first country that has a comparable or higher population than the UK is the US, which has been the leading economy for a century. The next on the list is Germany. Dependent on where you put the cut off (40m...