private static void resizeCaches() {
		System.out.println("resizing, max=" + largestCachedPrime);
		if (largestCachedPrime == 0) {
			largestCachedPrime = 10;
		}
		largestCachedPrime *= 2;

		primeListCache = Collections.unmodifiableList(PrimeSieve.genPrimes((int) (2 * Math.sqrt(largestCachedPrime)),
				largestCachedPrime));
		Set<Integer> temp = new HashSet<Integer>();
		temp.addAll(primeListCache);
		primeSetCache = Collections.unmodifiableSet(temp);
		System.out.println("resize complete!");
	}