Finish the part in EvictionIterator of prime-based sampling.