OFFSET
1,2
COMMENTS
EXAMPLE
0 is divisible by prime(0+1)=2.
n = 1,...,9 are not divisible by prime(n+1) = 3, 5, ..., 29, respectively.
20 is divisible by prime(2+1)=5 and by prime(0+1)=2. The same is true for any other 2...20...0 = 2*10^k*(10^m-1)/9; k >= 1, m >= 0.
44 is divisible by prime(4+1)=11.
PROG
is(n, b=10)=!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