This question already has an answer here:
Okay, here is another question for you wonderful people. I remember a show where a man dies and wakes up on a beach with a bunch of other people. They are all from different periods in time, with one of them being a caveman. All of these people try to build a society but of course conflict ensues. One of the people who end up on this beach is a Roman emperor (I think maybe Nero or Caligula, but it could have been any of them). One scene I remember vividly is the Roman emperor seeing a steam engine and remarking that if he had access to such technology, he would have taken over the world. If I had to guess, I would say that it was a mid-90's American production, and it was either a movie or a mini-series. I saw it in South Africa on the Sci-fi channel back when it knew how to spell it's name.