If you take Prilosec more than 6-8 weeks in a row, are you more likely to develop esophageal cancer?

Just the opposite. Priolosec and other proton pump inhibitors help limit acid reflux. Acid reflux is a risk factor for adenocarcinoma of the esophagus.
No. There is no evidence that Prilosec or other anti-acid producing drugs cause cancer.