[SciPy-User] Smart Hashing of Integer Numbers

Harald Schilly harald.schilly at gmail.com
Thu Sep 24 08:22:51 EDT 2009


On Thu, Sep 24, 2009 at 14:17, Lorenzo Isella <lorenzo.isella at gmail.com> wrote:
> Dear All,
> This is my problem: I have a couple of integer numbers (which are
> entries of a numpy array) and I would like to combine them unambiguously
> into a single (possibly short) integer number.

Note, a hash code number isn't unambiguously at all. Just as an idea, do this:
C=2^A*3^B
and to do the reverse, factor it.

H



More information about the SciPy-User mailing list