A short story by the world renowned author: Arthur C. Clarke
As described by Wikipedia
This short story tells of a Tibetan lamasery whose monks seek to list all of the names of God, since they believe the Universe was created in order to note all the names of God and once this naming is completed, God will bring the Universe to an end. Three centuries ago, the monks created an alphabet in which, they calculated, they could encode all the possible names of God, numbering about nine billion and each having no more than nine characters, in their alphabet. Writing the names out by hand, as they had been doing, even after eliminating various nonsense combination’s, would take another fifteen thousand years; the monks wish to use modern technology in order to finish this task more quickly.
They rent a computer capable of printing all the possible permutations, and they hire two Westerners to install and program the machine. The computer operators are skeptical but play along with the monks.
The operators engage the computer. After three months, as the job nears completion, they fear that the monks will blame the computer, and by extension its operators, when nothing happens. The Westerners delay the operation of the computer so that it will complete its final print run just after their scheduled departure. After their successful departure on ponies, they pause on the mountain path on their way back to the airfield, where a plane is waiting to take them back to civilization. Under a clear starlit night sky they estimate that it must be just about the time that the monks are pasting the final printed names into their holy books. They notice that “overhead, without any fuss, the stars were going out.”