OFFSET
1,1
COMMENTS
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1)=5 since 2_10 = 10_2 is a substring of 5_10 = 101_2.
MATHEMATICA
f[n_] := Block[{k = n + 1, p = StringTake[ ToString@ IntegerDigits[ Prime@n, 2], {2, -2}]}, While[q = StringTake[ ToString@ IntegerDigits[ Prime@k, 2], {2, -2}]; StringPosition[q, p] == {}, k++ ]; Prime@k]; Array[f, 55]
PROG
(Haskell)
a174332 = a208238 . a000040 -- Reinhard Zumkeller, Feb 14 2013
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Mar 15 2010
STATUS
approved