bc.powmod

Raise to a power modulus another number

Prototype

n = bc.powmod (b, e, m)

Description

Returns b to the power e modulus m. For example:

print (bc.powmod (2, 9182347891540, 9182347891541))  --> 7569093976632

Lua functions

Topics