sort minimal base 29 primes