On the predictability of the magnetic index Ap