Generator for prime-multiply encoded vector look-up table