To me, though, the whole Fermat's goofiness makes the episode more
interesting, not less. Were the writers rash and perhaps foolish in scripting that scene? Sure, but hey, at least they'd heard
of the Theorem, and laid the groundwork for cool discussions decades down the line such as this.
writers, on the other hand, clearly thought the height of cultural literacy was knowing Rosemary's Baby
was a horror movie.