Yeah, that's a classic one that I have to admit I've done.
But, for those not feeling so risky, you can also speed up a few mph and when they catch up a few seconds later, simply lighten up on the gas and slow down (not brake) a few mph and repeat over and over until they pass. A little safer and I think, in the long run, much more annoying.
The trick is not to make it too obvious until they pass you and you look and give them a BIG smile. Ohhh, they hate that.
I don't smile when they pass - just stick out my tongue. The look on their face when they see a bald, 55 year old guy sticking out his tongue at them is priceless.