Legendre Symbol Calculator
Enter an integer a and an odd prime p to compute the Legendre symbol.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
The Legendre symbol (a/p), defined for an integer a and an odd prime p, is a compact way of answering a fundamental question in number theory: does the congruence x² ≡ a (mod p) have a solution? This calculator evaluates it using Euler's criterion: (a/p) ≡ a^((p-1)/2) (mod p), which equals 1 if a is a quadratic residue mod p, −1 if it is a non-residue, and 0 if p divides a exactly.
The Legendre symbol is a building block of quadratic reciprocity theory and shows up throughout computational number theory and cryptography — including primality tests, algorithms for computing modular square roots, and constructions in elliptic-curve cryptography — wherever it matters whether a number is a perfect square modulo a prime.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)