Basically it is fully depend on the nucleus of an atom it is the total number of proton present in the nucleus of the atom is known as atomic number.