From Mesopotamia to Quantum Algorithms: Mathematics’ Unparalleled Journey Through Time Artificial intelligence