OFFSET
1,1
COMMENTS
19 is an anagram of 91 = T(13) = 13*14/2.
163, 613 and 631 are anagrams of 136 = T(16) = 16*17/2.
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
PROG
(Python)
from sympy import primerange
from itertools import count, takewhile
def hash(n): return "".join(sorted(str(n)))
def aupto_digits(d):
tris = takewhile(lambda x:x<10**d, (i*(i+1)//2 for i in count(0)))
primes = primerange(1, 10**d)
T = set(map(hash, tris))
return [p for p in primes if hash(p) in T]
print(aupto_digits(4)) # Michael S. Branicky, Feb 18 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Claudio Meller, Jul 01 2009
EXTENSIONS
Corrected by Claudio Meller, Jul 08 2009
STATUS
approved