It’s molecular mass (not atomic). Helium is 4 because it’s a monatomic molecule. Anything below about 10 will be able to make escape velocity. Dihydrogen molecules (2) can do the same too; the next lightest gas after those two is borane (14) and can’t.