IMHO
прежний = previous
бывший = former

It might not be 100% precise, but I hope it helps to feel the difference. It's correct for all the examples I can think of at the moment (1:30 AM :) ).