PRISM: Recovery of the primordial spectrum from Planck data