Buck's prime number coding scheme