Skip to content

Incorrect results for three-argument pow #18

@betaveros

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions