Re:Things I Learned from a Job Hunt for a Senior Engineering...
by eecc on Wednesday April 25, 2018 @02:28PM
(#16924516)
that's right... even prime isn't enough
[ Parent
| on HN ]
Re:Things I Learned from a Job Hunt for a Senior Engineering...
by shagie on Wednesday April 25, 2018 @02:52PM
(#16924785)
Prime is ok if it’s multiplied (there is one and only one prime factorization of a number).... but that can get to absurdly large numbers.
Still, consider the word ‘abe’ with a = 2, b = 3, c = 5, d = 7 and e = 11.
abe would then be 2^1 * 3^1 * 5^0 * 7^0 * 11^1. ‘abba’ would be 2^2 * 3^2. Each anagram would have a distinct value.
See also Gödel numbering and FRACTRAN.