Skip to content

Incorrect results for three-argument pow #18

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

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