two kinds of digit by

char*q = ")+/5;=CGIO",*p;
n;
m;
main(i,b) {
  for (i = 0; i < 10001; i++) {
    sprintf(b, "%d", i);
    for (n=1,p=b; *p; p++) {
      n*=q[*p-48];
    }
    m=0;
    for (p=q;*p;p++) {
      if(n%*p==0) m++;
    }
    m==2 && printf("%d\n", i);
  }
}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page