Last year, I got the high school math teacher’s version of a wish on a magic lamp: a chance to ask a question of the world’s most famous mathematician.

Andrew Wiles gained his fame by solving a nearly 400-year-old problem: Fermat’s Last Theorem. The same puzzle had captivated Wiles as a child and inspired him to pursue mathematics. His solution touched off a mathematical craze in a culture where “mathematical craze” is an oxymoron. Wiles found himself the subject of books, radio programs, TV documentaries—the biggest mathematical celebrity of the last half-century.