What a weird take.
North Korea has, like all (formerly and currently) communist countries, a decent education system.
An educated population of 20 million people will easily provide you with a several thousand people needed to develop functioning nuclear weapons. Those you need to feed. The rest may, and do, starve.