Fermat numbers and Fermat primes were first studied by Pierre de Fermat , who conjectured ( but admitted he could not prove ) that all Fermat numbers are prime .
Fermat numbers are named after Pierre de Fermat .