OFFSET
1,1
EXAMPLE
1 and 2 in base 2 are 1 and 10 and concat(10,1) = 101 is 5 in base 10.
3 and 4 in base 2 are 11 and 100 and concat(100,11) = 10011 is 19 in base 10.
MAPLE
with(numtheory): P:= proc(q) local a, b, c, n; if q=0 then 2 else a:=convert(q+1, binary, decimal); b:=convert(q, binary, decimal); c:=convert(a*10^(ilog10(b)+1)+b, decimal, binary); if isprime(c) then c; fi; fi; end: seq(P(i), i=0..1000);
MATHEMATICA
Select[Map[FromDigits[Apply[Join, IntegerDigits[Reverse@ #, 2]], 2] &, Partition[Range@ 320, 2, 1]], PrimeQ] (* Michael De Vlieger, May 18 2017 *)
PROG
(PARI) lista(nn) = {for (n=1, nn, if (isprime(p=fromdigits(Vec(concat(binary(n+1), binary(n))), 2)), print1(p, ", "))); } \\ Michel Marcus, May 20 2017
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paolo P. Lava, May 18 2017
EXTENSIONS
First term added by Michel Marcus, May 23 2017
STATUS
approved