The maths is quite useless to you as a programmer. I keep meaning to write a Number class that is based on factorisation (so it never actually does any maths, just remembers lists of factors until...
Type: Posts; User: Sean4u
The maths is quite useless to you as a programmer. I keep meaning to write a Number class that is based on factorisation (so it never actually does any maths, just remembers lists of factors until...
a^(b+c) = a^b * a^c
That part is right, it's the next bit that's completely wrong. I only looked at it because I wondered if you were getting integer overflow. 18 is a bit more than 2^4. a^b^c is a^b*c, so 2^92 (4 times...
There's one slightly even better choice for large integers!
Something that you might want to bear in mind is that you might be using quite large numbers and a technique that depends on integer values with Math.pow(). You might get lucky as long as your...
I read your link and it seems the person who wrote it may not have been paying attention during the last example:
Does that look right to you?
How does your code work if you use the values in the...