Changed PrimeCache to use vector instead of set.