Skip to main content
1 of 5
Kevin Cruijssen
  • 131.4k
  • 13
  • 144
  • 384

#Java 7, 192 bytes

class M{public static void main(String[]a){int n=Integer.parseInt(a[0]),i=1,c=0;while(n!=c)if(!new String(new char[++i]).matches("(..+?)\\1+")&&(i+"").contains(a[0]))c++;System.out.print(i);}}

Ungolfed:

class M{
    public static void main(String[] a){
        int n = Integer.parseInt(a[0]),
            i = 1,
            c = 0;
        while(n != c)
            if(!new String(new char[++i]).matches("(..+?)\\1+") &&
                (i+"").contains(a[0]))
                c++;
        System.out.print(i);
    }
}

Usage:

java -jar M.jar 10

Output:

1033
Kevin Cruijssen
  • 131.4k
  • 13
  • 144
  • 384