public static void main(String[] args) { BigInteger pCorr = new BigInteger("2"); BigInteger pInc = new BigInteger("1"); BigInteger incorrects = new BigInteger("0"); // loop calculates number of hads in each incorrect iteration for (int x = 0; x < 100; x++) { // 6 + 2*pInc + pCorr pInc = pInc.pCorr = place; System.out.println(place + ""); incorrects.add(new BigInteger(place + "")); } System.out.println(incorrects); }