OFFSET
1,2
COMMENTS
EXAMPLE
6 = 110_2 (in base 6), and 6 is divisible by prime(1+1)=3 and by prime(0+1) = 2.
9 = 101_2 is not in the sequence because it is odd but has a binary digit 0.
PROG
is(n, b=2)=!for(i=1, #d=Set(digits(n, b)), n%prime(d[i]+1)&&return)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, Apr 11 2015
STATUS
approved