Question: when was the tower of london last 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 .