Store in an air-tight container in the refrigerator. Raw sweet potatoes should stay good for 3-5 weeks at room temperature, but once they are cooked they will only last 3-5 days.