login
Binary representation of the concatenation of the first n primes.
0

%I #3 Oct 01 2013 17:57:41

%S 10,10111,11101011,100100110101,111001100010111111,

%T 1011001111010101010101001,10001100011111101010101000010101,

%U 11011011100001011110100111000001000111

%N Binary representation of the concatenation of the first n primes.

%o (PARI) concatprbin(n) = { y=2; print1(10","); forprime(x=3,n, y=eval(concat(Str(y),Str(x))); b=binary(y); ln=length(b); z=Str(b[1]); for(j=2,ln, z=concat(Str(z),Str(b[j])); ); print1(z,",") ) }

%K nonn,base

%O 1,1

%A _Cino Hilliard_, Sep 08 2003