That 's because the primary means of dating prehistoric materials and events -- measuring atomically unstable carbon 14 in ocean sediments and ice cores -- can err by several thousand years when used on samples more than 20,000 years old .