python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to use BigInteger with Comparison operators in java
I want to use BigInteger in if statement. But BigInteger needs to convert to int for compare with integer data type. how to convert BigInteger as a int.
This is my buggy code.
Scanner in = new Sca...
Rizen_137
Votes: 0
Answers: 0
Calculating Diffie Hellman Challenge - Python vs NodeJS
I'm trying to calculate the Diffie-Hellman Challenge in Python based on the algorithm from a NodeJS client app. The code for the NodeJS client app is as follows:
var a = crypto.randomBytes(25).toStri...
Vee
Votes: 0
Answers: 1
Why are these two values different?
I recently had a lecture where we covered BigInts and how to declare them using either the constructor or appending an 'n' to the end of the number. I felt as though I understood the lecture well, unt...
Dev Sock
Votes: 0
Answers: 1
Is there an algorithm, to find values of a polynomial with big integers, quickly without loops?
For example, if I want to find
1085912312763120759250776993188102125849391224162 = a^9+b^9+c^9+d
the code needs to brings
a=3456
b=78525
c=217423
d=215478
I do not need specific values, only that they...
Mencey
Votes: 0
Answers: 2