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