@szakib @Dtl A primary is one that can be easily set off by mechanical impact, heat, etc. These are inherently much more dangerous to handle for obvious reasons.
A secondary is one that is sufficiently insensitive that it is difficult or impossible to make it go boom without something else exploding next to it to provide simultaneous high heat and pressure from the shock wave. These are relatively safe to handle - some of them can even be ignited with a match and will burn vigorously but not detonate - but can't be used on their own because you can't set them off directly.
Most real world blasting and munitions use a small charge of primary explosive in a blasting cap or similar to then set off the main charge of secondary. Sometimes, for a particularly insensitive main charge, you might even have a "booster" of intermediate sensitivity between the two.
The idea is that the main charge can be handled in near complete safety until you insert the detonator, and a mishandling of just the detonator might lead to a blown eardrum or loss of a finger or something but won't leave a giant crater The mating of the two is the riskiest part of the operation as a screwup there could set off the main charge, but this is a short window of time which can be performed with the utmost care.