general prim was named president during the interim