The elegance of a mathematical proof is akin to the beauty of a well-crafted algorithm.