Question: when did the tower of london stop being used as a prison
Answer: The castle was used as a prison from 1100 ( Ranulf Flambard ) until 1952 ( Kray twins ) , although that was not its primary purpose .