Primers or detonators containing a hollow charge