1,2

a(n) = A039634(n) for n<=44, but a(45) = 13 <> 11 = A039634(45);

for n>1: a(n) = n iff n is prime.

a(n) = A225243(n, A078826(n)). - Reinhard Zumkeller, Aug 14 2013

Reinhard Zumkeller, Table of n, a(n) for n = 1..10000

n=12 -> '1100' contains 2 binary substrings which are primes: '11' (11bb) and '10' (b11b); 3='11' is the greater one, therefore a(12)=3.

(Haskell)

a078833 = last . a225243_row -- Reinhard Zumkeller, Aug 14 2013

Cf. A078832, A078826, A078822, A007088, A006530.

Sequence in context: A130088 A078834 A039634 * A210437 A109674 A284260

Adjacent sequences: A078830 A078831 A078832 * A078834 A078835 A078836

nonn,base

Reinhard Zumkeller, Dec 08 2002

approved