Modulare Exponentiation

base^exponent mod modulus für große Ganzzahlen berechnen.

Eingabe: TextErgebnis: Text

Texteingabe

Optionen

Beispiele

using input field for base

Eingabe

5

Expected answer

JSON
6
Basis
(empty)
Modulus
7
Exponent
3
using input field for exponent

Eingabe

4

Expected answer

JSON
5
Basis
2
Modulus
11
Exponent
(empty)
base one

Eingabe

Expected answer

JSON
1
Basis
1
Modulus
1000
Exponent
999
basic example (2^10 mod 1000)

Eingabe

Expected answer

JSON
24
Basis
2
Modulus
1000
Exponent
10
crypto-sized numbers (RSA-2048 simulation)

Eingabe

Expected answer

JSON
1
Basis
12345678901234567890123456789012345678901234567890
Modulus
99999999999999999999999999999999999999999999999999
Exponent
0
exponent zero

Eingabe

Expected answer

JSON
1
Basis
999
Modulus
100
Exponent
0
Fermat's Little Theorem (a^(p-1) mod p = 1)

Eingabe

Expected answer

JSON
1
Basis
3
Modulus
11
Exponent
10
hexadecimal input

Eingabe

Expected answer

JSON
256
Basis
0x10
Modulus
1000
Exponent
0x2
large base and exponent

Eingabe

Expected answer

JSON
560583526
Basis
123456789
Modulus
1000000007
Exponent
65537
RSA-like example (small)

Eingabe

Expected answer

JSON
561
Basis
123
Modulus
1000
Exponent
456

Parameter

ParameterStandardwertEingabe und Auswahl
Basis""Text
Modulus"1"Text
Exponent""Text

Ähnliche Werkzeuge

Arithmetik / Logik

Referenz zur Operation

Technische Originaldokumentation ansehen (English)