I believe it was an Arthur C. Clarke tale the “Nine Billion Names of God “ !
Wow! It’s been a while since I read that one.