MathCastle
Number TheoryHardFermat, Euler and Wilson

Fermat, Euler and Wilson · Hard problem

Is 9191 prime? Run the Fermat test with base 22: find the remainder when 2902^{90} is divided by 9191.