Pierre de Fermat and Near-Misses to His Last Theorem