My understanding is that the US and France are the only countries who have independently developed nuclear weapons. All other countries who have nukes have either stole the technology from the US or stole/been given the tech from someone who stole it from the US. Except for France who did it themselves because we didn't want to share.
@valleyforge the UK developed independently in the "Tube Alloys" program until it merged with the Manhattan project on 1943.
The US then told us that we weren't allowed the secrets and so developed our own in 1952.
Before the French.