Having a “magic” number of protons or neutrons means there are enough to fully occupy the nuclear valence shells (outermost orbits around the nucleus) in an atom and give it stability.