Fermat's Little Theorem Modular Power Verifier

Verify a^(p-1) ≡ 1 (mod p) for prime modulus p and coprime base a.

Runs locally in browser Free · No login Available (Noindex) · 2026-11-25 v4.0.0
Result
—
MetricValue

    Formula & Methodology

    a^(p-1) mod p = 1

    Technical Explanation

    Verify a^(p-1) ≡ 1 (mod p) for prime modulus p and coprime base a. Executes 100% locally in your browser with step-by-step derivations and CSV export.

    Worked Examples

    • Adjust inputs above to inspect live step-by-step output and download results as CSV.

    Limitations & Assumptions

    • Standard IEEE 754 double precision applies except modular exponentiation which uses arbitrary-precision BigInt.

    Source References & Verification

    Resource ID: calc-fermat-little-theorem-check · Technical check: 2026-11-25 (noindex pending/withheld from search)

    Related Resources