public static void main(String[] args) {
		long start = System.nanoTime();
		int sum = 0;
		for (Integer i = 1; i < 1000000; i++) {
			BigInteger binaryVal = new BigInteger((Integer.toBinaryString(i)));
			if (isPalindromic(BigInteger.valueOf(i))
					&& isPalindromic(binaryVal)) {
				sum += i;
			}
		}
		System.out.println(sum);
		System.out.println("Done in " + (double) (System.nanoTime() - start)
				/ 1000000000 + " seconds.");
	}