Working version of primecache.