Skip to content

Possible evaluation issue when using exponentiation and modulo #104

@ArashPartow

Description

@ArashPartow

The following modulo-exponentiation doesn’t seem to give the correct answer:

mod(10749191 ^ 13; 5083823)
= 332642

Expected to get: 4189250

Attempting to perform: a^b mod n

speedcrunch_20241129


If this is an issue relating to overflow please close it. However I’m thinking because an arbitrary precision floating point type is being used in the backend it may not be overflow related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions