public static void main(String[] args) {
		int counter = 1;		
		long startTimeMillis = System.currentTimeMillis();
		boolean c1 = false, c2 = false, c3 = false, c4 = false;
		
		while((c4 = getDistinctPrimeFactors(counter+3).size() != 4) ||
			  (c3 = getDistinctPrimeFactors(counter+2).size() != 4) ||
			  (c2 = getDistinctPrimeFactors(counter+1).size() != 4) ||
			  (c1 = getDistinctPrimeFactors(counter+0).size() != 4)) {
						
			if(c4)
				counter += 4;
			else if(c3)
				counter += 3;
			else if(c2)
				counter += 2;
			else
				counter++;
		}

		System.out.println(System.currentTimeMillis() - startTimeMillis);
		System.out.println(counter);
	}