Using primer with acne products?

Alex

I always have acne products on my face. During the day (so under makeup) I use some tea tree oil and on top of that benzoyl peroxide (which is pasty) should and when do I use the primer? Sometimes my moisturizer/foundation with gloop up with the BP and I just brush it away. I’m wondering how primer would fit into all this. (Oily acne prone skin)