When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
Bad Primary O2 sensor should not cause the condition you describe (won't rev past 3k) so I don't think it's as easy as replacing the sensor. Good luck.