• + 0 comments

    Looks like I've got super fast computer: 2.7 Ghz, Pentium 5, single core. Here is the result for calculation of all 2.6 * 10 ** 6 cases: // 2.6 * 10 ** 6 test... ** operator is "in a power of" long timeStart = System.currentTimeMillis(); for (int n = 0; n++ < 100000;) for (int k = 0; k++ < 26;) dortmundDilemma(n, k); long timeStop = System.currentTimeMillis(); System.out.println("elapsedMills = " + (timeStop - timeStart)); Output: elapsedMills = 402