Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible evaluation issue when using exponentiation and modulo #104

Open
ArashPartow opened this issue Nov 30, 2024 · 0 comments
Open

Possible evaluation issue when using exponentiation and modulo #104

ArashPartow opened this issue Nov 30, 2024 · 0 comments

Comments

@ArashPartow
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant