I think that problem is more complex. Gravity plays its role in holding mass on any planet, but the density of gases, their segregation, temperature variation with altitude, geomagnetic field and proximity to any other cosmic object are also important. Starting with gravity, it is known that it...