Math/programming babby here.
How would I calculate the exact value of 'i' in order to call doGoodStuff given the following p-code:int64 a = 11111;
int64 b = -123456789;
int64 i;
i = getInput();
if (i*a == b) {
doGoodStuff();
}
i = b/a?
>>52030812
>please /g/ help me I was too lazy to listen to my teachers in school in math class and now I can't even and the current year is going to end what do
>>52030812
What do you mean with "calculate the value of i"? It's determined by the input.
Do you meani * a = b=>b / a = i?
If its this, you seriously need to learn the basics of math. Because this is elementary school level
>>52030901
>>52030951
>>52030901
No, it's an integer so it has to do with overflow & prime numbers, but I haven't slept for 24 hours so I can't really think straight.
>>52030925
I literally got 99 in Calculus & Vectors and Ontario is notorious for giving shit marks.
>>52030985
Wow good 4u
>>52031287
Quality post, keep up the good work.
?
>>52030812
The correct answer is 15214288785120529885.
Try it.
>>52030956
Doesn't really have much to do with prime numbers, it's just modular arithmetic.
>>52032199
-3232455288589021731 also works of course. (same binary representation, which is all that matters since multiplication is the same for unsigned and signed numbers)
>>52030956
Please sleep anon, we care about you