Nicotinamide
Clinical studies have found that taking oral nicotinamide (a form of B vitamin that can be purchased without prescription) at a dose of 500 mg twice daily may reduce the risk of new non-melanoma skin cancers (such as basal cell carcinoma and squamous cell carcinoma) in individuals with a history of these cancers. It may also reduce the occurrence of actinic keratoses (precancerous lesions).
Nicotinamide is generally well tolerated but common side effects include gastrointestinal symptoms like nausea and upset stomach, as well as flushing and headaches. Prolonged use of high doses (over 3 grams per day) can lead to liver toxicity, potentially causing jaundice. Rare side effects include low blood pressure and allergic reactions. As for all medications you should carefully read the product information leaflet that comes with the medicine so that you are aware of all potential side effects.