South africa was able to make a minimum viable weapon on a shoestring budget. They had access to nuclear reactors though.