A Fermat number is a special positive number . Fermat numbers are named after Pierre de Fermat . In fact , Rotkiewicz showed in 1964 that the product of any number of prime or composite Fermat numbers will be a Fermat pseudoprime to base 2 .