Fermat's Little Theorem Calculator

Compute modular powers using Fermat's Little Theorem.

Calculator
Enter the values for base (a), exponent (b), and modulus (p).
Sample Input:
a = 2, b = 10, p = 5
Result
Result of a^b mod p.