Results from running Python on repl.it, which I'm assuming reflect here: ``` pow(2,36,100000) => 69184L 2**36 % 100000 => 76736L ``` 76736 is the correct result. Also: ``` pow(2,40,100000) => 127776 ``` which is greater than the passed modulus; it should be 27776.
Activity
aidanhs commentedon Apr 12, 2015
FWIW, empython (a more up-to-date build of python with emscripten) computes both of these correctly.