Ignore the brighter students, if they're bright and interested enough then they'll push each other and themselves forward. Focus your energy on those who actually need your help, ie the ones who struggle with it.
In my 3rd and 4th year (in Belgium high school is 6 years, 1st to 6th, and for every pair of years you get to choose increasing specialization) I had a math teacher who had this "everyone must go at the speed of the slowest" thing. It felt like being forced to solve mind-numbing things like "1 + 1" and "1 + 2" over and over and over again, it almost destroyed my interest in math altogether.
Then in 5th and 6th year I had a different math teacher (who was also more mathematically inclined, probably given that she taught the math specialization class). After about two weeks into the 5th year I had read the full textbooks for that year so I was getting bored again. So I started immediately shouting the right answer to every question she asked (someone in) the class. By that time she was annoying me by forcing me to participate so I started annoying her. After a bit of this she put me in her 6th year class instead.
Somewhat later she gave in to my refusal to make my homework as well. I had explained that it was a mindnumbing waste of time (it was always of the sort of "solve these integrals" or "solve these equations" etc, something a computer could do just as well) but she didn't go along with that at first, but at least she wasn't putting me in detention all the time for refusing, like that previous teacher did.
One time homework consisted of solving a bunch of integrals, which I of course didn't do, and which she had noticed I didn't do. So she wrote the most difficult one on the blackboard and then called me to show my solution. Normally in those situations the guy who sat next to me would just give me his homework and the teacher wouldn't know, but he had been unable to solve that particular one. So I was in a bit of a problematic situation, so I got up from my chair and started walking towards the blackboard, trying to solve that integral in my head. After a couple of steps the teacher said "well you obviously didn't make your homework again, did you?" to which I replied "wait, I didn't get to the blackboard yet." A couple of steps further I saw the solution, so I smiled, increased my pace, and wrote the solution on the blackboard. After which she said "fine, you win, you don't have to make your homework."
After a couple of weeks in the 6th year class I had fully read the textbooks for that year as well, after which I didn't have to participate at all anymore (this actually took another round of annoying her by immediately shouting the answer to every question she asked the class). In the end I spent the last 3 years of highschool (I had to do the 6th year twice) being 8 hours per week out of 32 (I picked maximum math specialization, hence 8/32 hours) completely free to do whatever I wanted (just as long as I didn't bother her teaching the rest of the class). She even put a computer with Mathematica on it in class just for me to experiment with.
My point is, trying to teach everyone at the same level is a fool's errand. See who it is you're actually helping and who it is you're actually holding back, and put your energy into those who actually need your help and just ignore the ones who you're holding back.
I'm impressed by your talent (I find solving integrals quite difficult, despite it often being a mechanical process).
But, if you wanted the teacher to just ignore you, why did you show off by shouting out the answers? And of course she didn't ignore you; she made concessions and provided you with special educational equipment. Your earlier boredom and frustration that you expressed by not doing the homework and by shouting out the answers suggests that you would have found it preferable had she made those adjustments sooner.
Your own story shows that "just ignore" is not an adequate recipe for dealing with the more advanced students.