Esponenziazione Modulare

Calcola base^exponent mod modulus con interi grandi.

Input: TestoRisultato: Testo

Inserimento di testo

Opzioni

Esempi

using input field for base

Input

5

Expected answer

JSON
6
Base
(empty)
Modulo
7
Esponente
3
using input field for exponent

Input

4

Expected answer

JSON
5
Base
2
Modulo
11
Esponente
(empty)
base one

Input

Expected answer

JSON
1
Base
1
Modulo
1000
Esponente
999
basic example (2^10 mod 1000)

Input

Expected answer

JSON
24
Base
2
Modulo
1000
Esponente
10
crypto-sized numbers (RSA-2048 simulation)

Input

Expected answer

JSON
1
Base
12345678901234567890123456789012345678901234567890
Modulo
99999999999999999999999999999999999999999999999999
Esponente
0
exponent zero

Input

Expected answer

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

Input

Expected answer

JSON
1
Base
3
Modulo
11
Esponente
10
hexadecimal input

Input

Expected answer

JSON
256
Base
0x10
Modulo
1000
Esponente
0x2
large base and exponent

Input

Expected answer

JSON
560583526
Base
123456789
Modulo
1000000007
Esponente
65537
RSA-like example (small)

Input

Expected answer

JSON
561
Base
123
Modulo
1000
Esponente
456

Parametri

ParametroValore predefinitoInput e opzioni
Base""Testo
Modulo"1"Testo
Esponente""Testo

Strumenti correlati

Aritmetica / Logica

Riferimento dell’operazione

Vedi la documentazione tecnica originale (English)