OFFSET
1,2
COMMENTS
EXAMPLE
0 is divisible by prime(0+1)=2.
10 = 22_4 and is divisible by prime(2+1)=5.
n = 1, 2, 3 are not divisible by prime(n+1) = 3, 5, 7; nor are 4=10_4, 5=11_4, and 7=13_4 divisible by prime(1+1) = 3; nor are 6=12_4, 8=20_4, 9=21_4 divisible by prime(2+1)=5.
PROG
is(n, b=4)=!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