login
Home primes in base 2: primes reached when you start with n and (working in base 2) concatenate its prime factors (A048985); repeat until a prime is reached (or -1 if no prime is ever reached).
0

%I #5 Aug 11 2024 14:41:34

%S 1,10,11,11111,101,1011,111,10110011,11101,11111,1011,101011,1101,

%T 10111,11101,10111011100111,10001,101111,10011,11111011,11111,101011,

%U 10111,111110011,111111111011,111111111011,1111111,111111111011,11101

%N Home primes in base 2: primes reached when you start with n and (working in base 2) concatenate its prime factors (A048985); repeat until a prime is reached (or -1 if no prime is ever reached).

%C a(1) = 1 by convention.

%H P. De Geest, <a href="https://www.worldofnumbers.com/topic1.htm">Home Primes</a>

%Y See A048986 for base 10 representation. Cf. A037274.

%K nonn,base,easy

%O 1,2

%A _N. J. A. Sloane_, Oct 31 2001

%E More terms from _David Wasserman_, Aug 15 2002