public static void main(String[] args) {
		int limit = 28123;
		ArrayList<Integer> abundantNums = new ArrayList<Integer>();
		for (int i = 1; i < limit; i++)
			if (abundant(i))
				abundantNums.add(i);
		int numSumOfAbundant;
		boolean[] sumOfAbundant = new boolean[limit + 1];
		for (int i = 0; i < abundantNums.size(); i++)
			for (int j = i; j < abundantNums.size(); j++) {
				numSumOfAbundant = abundantNums.get(i) + abundantNums.get(j);
				if (numSumOfAbundant <= limit)
					sumOfAbundant[numSumOfAbundant] = true;
				else
					break;
			}
		int sum = 0;
		for (int i = 0; i < sumOfAbundant.length; i++)
			if (!sumOfAbundant[i])
				sum += i;
		System.out.println(sum);
		// Solution: 4179871
	}