Which of the carbonates given below is unstable in air and is kept in CO2 atmosphere to avoid decomposition?

1. BeCO3

2. MgCO3

3. CaCO3

4. BaCO3