Exponentiation modulaire

Calcule base^exponent mod modulus avec de grands entiers.

Entrée: TexteRésultat: Texte

Saisie de texte

Options

Exemples

using input field for base

Entrée

5

Expected answer

JSON
6
Base
(empty)
Modulus
7
Exposant
3
using input field for exponent

Entrée

4

Expected answer

JSON
5
Base
2
Modulus
11
Exposant
(empty)
base one

Entrée

Expected answer

JSON
1
Base
1
Modulus
1000
Exposant
999
basic example (2^10 mod 1000)

Entrée

Expected answer

JSON
24
Base
2
Modulus
1000
Exposant
10
crypto-sized numbers (RSA-2048 simulation)

Entrée

Expected answer

JSON
1
Base
12345678901234567890123456789012345678901234567890
Modulus
99999999999999999999999999999999999999999999999999
Exposant
0
exponent zero

Entrée

Expected answer

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

Entrée

Expected answer

JSON
1
Base
3
Modulus
11
Exposant
10
hexadecimal input

Entrée

Expected answer

JSON
256
Base
0x10
Modulus
1000
Exposant
0x2
large base and exponent

Entrée

Expected answer

JSON
560583526
Base
123456789
Modulus
1000000007
Exposant
65537
RSA-like example (small)

Entrée

Expected answer

JSON
561
Base
123
Modulus
1000
Exposant
456

Paramètres

ParamètreValeur par défautEntrée et choix
Base""Texte
Modulus"1"Texte
Exposant""Texte

Outils associés

Arithmétique / Logique

Référence de l’opération

Voir la documentation technique originale (English)