OFFSET
1,2
COMMENTS
EXAMPLE
0 is divisible by prime(0+1)=2.
6 = 10_6 in base 6, and is divisible by prime(1+1)=3 and by prime(0+1)=2.
21 = 33_6, and is divisible by prime(3+1)=7.
n = 1, 2, 3, 4, 5 are not divisible by prime(n+1) = 3, 5, 7, 11, 13, respectively. 7=11_6, 8=12_6, 10=13_6, ... are not divisible by prime(1+1)=3; 9=12_7 is not divisible by prime(2+1)=5, etc.
PROG
(PARI) is(n, b=6)=!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