Quadlods is a program for generating low-discrepancy sequences, originally Richtmyer sequences and now also Halton sequences. Both kinds of sequences use prime numbers for the dimensions. Since there are 6542 primes less than 65536, that is the maximum number of dimensions.
Download the source code here.