@Test
public void fifthThousandThPrime() {

    Primes p = new Primes() {
        @Override
        protected void log(String msg) {
        }
    };
    int last = p.compute();
    assertEquals("100000th prime is", 1_299_709, last);
}