Switch small primes and lpf arrays to uint32_t