OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..150
EXAMPLE
10513 is in the sequence because the central digit 5 equals the sum of the other digits 1+0+1+3.
MAPLE
with(numtheory):for n from 2 to 4 do:m:=2*n-2:for k from 10^m to 10^(m+1)-1 do:x:=convert(k, base, 10):n1:=nops(x):s:=sum('x[j]', 'j'=1..n1):s1:=s-x[n]:if x[n]=s1 and type(k, prime)=true then printf(`%d, `, k):else fi:od:od:
MATHEMATICA
cdsodQ[n_]:=Module[{idn=IntegerDigits[n], len}, len=(Length[idn]+1)/2; OddQ[ IntegerLength[ n]]&&Total[Drop[idn, {len}]]==idn[[len]]]; Select[ Prime[ Range[ 80000]], cdsodQ] (* Harvey P. Dale, Nov 11 2017 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Michel Lagneau, Jan 18 2014
EXTENSIONS
Name simplified by Jon E. Schoenfield, Sep 09 2017
STATUS
approved