How to turn down a guy in public

I'm 20 years old and in a serious relationship. Often when I go out alone, a guy will try to hit on me or get my number/snapchat. I'll tell them I have a boyfriend and brush it off, but it can become uncomfortable when it's two or three guys with them or I'm by myself. How do you turn a guy down without risking your safety?