Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You could use a lookup table to turn the nth letter of the alphabet into the nth prime number, then multiply those primes together. This "hash" would be unique up to reordering of the primes/letters.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: