PRIME Minister Gordon Brown yesterday warned the world was in danger after North Korea set off a nuclear explosion.