Arthur Porges' short story "The Devil and Simon Flagg" features a mathematician who bargains with the Devil that the latter cannot produce a proof of Fermat's Last Theorem within twenty-four hours.
Arthur Porges' novelle The Devil and Simon Flagg beskriver en matematiker, som vædder med djævlen om, at denne ikke kan udfærdige et bevis for Fermats sidste sætning inden for 24 timer.