Is there an easy way to find two values โโthat, when multiplied together, create an accurate bitmap?
For testing purposes, I need to find two 64-bit integer values โโthat are exactly multiplied by a 128-bit intermediate value with a specific bit pattern. Obviously I can generate the intermediate value I want and divide by random values โโuntil I find a combination that works, but is there a more efficient way?
+2
source to share
3 answers
This problem sounds like a whole factorization . Unfortunately, no fast algorithms are known, but after looking at this Wikipedia page it seems that there are some (possibly complex) algorithms that are faster than trial division.
+7
source to share