OFFSET
1,1
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
EXAMPLE
2341 is a member with 2+3 = 4+1.
MATHEMATICA
Select[Prime[Range[169, 1229]], Length[Union[Total/@TakeDrop[ IntegerDigits[ #], 2]]] == 1&] (* The program generates all 56 4-digit terms. To generate all 3669 of the 6-digit terms, change the Range constants to (9593, 78498) and change the 2 to 3. *) (* Harvey P. Dale, Aug 15 2021 *)
PROG
(Python)
from sympy import primerange
def sd(s): return sum(map(int, s))
def auptod(digits):
alst = []
for d in range(2, digits+1, 2):
for p in primerange(10**(d-1), 10**d):
s = str(p)
if sd(s[:len(s)//2]) == sd(s[len(s)//2:]): alst.append(p)
return alst
print(auptod(4)) # Michael S. Branicky, Aug 15 2021
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Amarnath Murthy, Mar 21 2002
EXTENSIONS
Corrected and extended by Harvey P. Dale, Aug 15 2021
11 prepended by David A. Corneth, Aug 15 2021
STATUS
approved