Pyramids are by far much older. The building of pyramids in Egypt started about 4600 years ago but there appears to have one built in todays Indonesia around 10 000 years ago. The Bible, as we know it, was created around AD 223 but parts of the Torah is from 1300 BC.