OFFSET
1,1
EXAMPLE
2 and 3 in base 7 are 2 and 3 and concat(3,2) = 32 in base 10 is 23;
8 and 9 in base 7 are 11 and 12 and concat(12,11) = 1211 in base 10 is 449.
MAPLE
with(numtheory): P:= proc(q, h) local a, b, c, d, k, n; if q=0 then 7 else a:=convert(q+1, base, h); b:=convert(q, base, h); c:=[op(a), op(b)]; d:=0; for k from nops(c) by -1 to 1 do d:=h*d+c[k]; od; if isprime(d) then d; fi; fi; end: seq(P(i, 7), i=0..1000);
MATHEMATICA
With[{b = 7}, Select[Map[FromDigits[Flatten@ IntegerDigits[#, b], b] &, Reverse /@ Partition[Range[0, 200], 2, 1]], PrimeQ]] (* Michael De Vlieger, May 23 2017 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Paolo P. Lava, May 23 2017
STATUS
approved