public static boolean hasDivisibilityProperties(String x) {
        boolean d234by2, d345by3, d456by5, d567by7, d678by11, d789by13,
                d8910by17;
        d234by2 = Long.parseLong(x.substring(1, 4)) % 2 == 0;
        d345by3 = Long.parseLong(x.substring(2, 5)) % 3 == 0;
        d456by5 = Long.parseLong(x.substring(3, 6)) % 5 == 0;
        d567by7 = Long.parseLong(x.substring(4, 7)) % 7 == 0;
        d678by11 = Long.parseLong(x.substring(5, 8)) % 11 == 0;
        d789by13 = Long.parseLong(x.substring(6, 9)) % 13 == 0;
        d8910by17 = Long.parseLong(x.substring(7, 10)) % 17 == 0;
        if (d234by2 && d345by3 && d456by5 && d567by7 && d678by11 && d789by13 && d8910by17) {
            return true;
        } else {
            return false;
        }
    }