Skip to content

Incorrect results for three-argument pow #18

Open

Description

@betaveros

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

  1. aidanhs commented on Apr 12, 2015

    @aidanhs

    FWIW, empython (a more up-to-date build of python with emscripten) computes both of these correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions