In the writings of Flavius Josephus it describes the TORAH CODES
"...the 'Essenes' (at Qumran) as having the gift of Prophecy. They had knowledge to give numerical values to letters (gematria). Then they exchanged certain letters with other opposite letters (temurah). Then, by a secret process of mathematical aphorisms of the Prophets, they could not only predict the details of the fulfillment of a Sacred Writing, but could determine the exact time of the prophecy's fulfillment with astute accuracy. Rarely, if ever, did their predictions prove wrong."
"...the 'Essenes' (at Qumran) as having the gift of Prophecy. They had knowledge to give numerical values to letters (gematria). Then they exchanged certain letters with other opposite letters (temurah). Then, by a secret process of mathematical aphorisms of the Prophets, they could not only predict the details of the fulfillment of a Sacred Writing, but could determine the exact time of the prophecy's fulfillment with astute accuracy. Rarely, if ever, did their predictions prove wrong."