The priest's job provided for Pervushin's life and left him plenty of free time to spend on mathematics. Pervushin was particularly interested in number theory. In 1877 and in the beginning of 1878 he presented two papers to the Russian Academy of Sciences. In these papers, he proved that the 12th and 23rd Fermat numbers are composite:.
