Fix PrimeCache, was totally broken.
Much more efficient PrimeCache()