North Korea is ruled by a lunatic, and Pakistan is being ruled by a bunch of lunatics. So it is difficult to say that who is more dangerous. Hopefully the United States may be able to persuade Pakistan to give up the nuclear weapons, before any of them ends up with the ISIS.
Pakistan is never going to surrender its nuclear weapons as long as India also has nuclear weapons, the probabilities of a nuclear war among the world strongest countries went down but it is more likely that a nuclear war being started by a local conflict.
India is not going to give up their nukes. Forget about it. But there is a chance that Pakistan may agree to deactivate their nuclear weapons, if the US can offer them a nice deal. Pakistan is a failed country, which is desperate for cash and clout.