RosettaCodeData/Task/Modular-exponentiation/Wren/modular-exponentiation.wren
2024-03-06 22:25:12 -08:00

6 lines
269 B
Text

import "./big" for BigInt
var a = BigInt.new("2988348162058574136915891421498819466320163312926952423791023078876139")
var b = BigInt.new("2351399303373464486466122544523690094744975233415544072992656881240319")
var m = BigInt.ten.pow(40)
System.print(a.modPow(b, m))