The Ptolemaic Kingdom , c. 300 BC, was centered on Alexandria in ancient Egypt ; Cos was on its northwest frontier.