RosettaCodeData/Task/Modular-exponentiation/Tcl/modular-exponentiation-2.tcl
2023-07-01 13:44:08 -04:00

4 lines
207 B
Tcl

set a 2988348162058574136915891421498819466320163312926952423791023078876139
set b 2351399303373464486466122544523690094744975233415544072992656881240319
set n [expr {10**40}]
puts [expr {modexp($a,$b,$n)}]