Is it possible to produce unique number (an integer) from two integers?
The two numbers are points in 2d coordinate system, their value can be 0, negative and positive.
I can assume that all points will be in range +- (-1000,1000)
my first guess was simply use a1*n+a2*m (where n and m are randomly choosen primes) however this formula produces some conflicts.