We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is a bug in some prime tests.
This lines are wrong, it fails to detect if gcdTest.dataLength > 1
if (gcdTest.dataLength == 1 && gcdTest.data[0] != 1)
it should be
if (gcdTest.dataLength > 1 || gcdTest.dataLength == 1 && gcdTest.data[0] != 1)
(I replaced all this check with IsNegative, IsOne, IsOdd, etc. Sad that this code is not supposed anymore, it is the best c# code I know)
The text was updated successfully, but these errors were encountered:
Hi, .NET now has its own, built-in BigInteger class, which is better than what was implemented here. It lacks some functions, which can be found in our other project (https://github.com/aprismatic/bigintegerext) that extends the built-in class.
Sorry, something went wrong.
No branches or pull requests
There is a bug in some prime tests.
This lines are wrong, it fails to detect if gcdTest.dataLength > 1
if (gcdTest.dataLength == 1 && gcdTest.data[0] != 1)
it should be
if (gcdTest.dataLength > 1 || gcdTest.dataLength == 1 && gcdTest.data[0] != 1)
(I replaced all this check with IsNegative, IsOne, IsOdd, etc.
Sad that this code is not supposed anymore, it is the best c# code I know)
The text was updated successfully, but these errors were encountered: