OFFSET
1,1
COMMENTS
The last term is a(29943) = 777777735555533.
LINKS
Robert Israel, Table of n, a(n) for n = 1..29943
EXAMPLE
a(3) = 333555757775777 is a term because its 15 digits consist of three 3's, five 5's and seven 7's.
MAPLE
select(isprime, map(t -> add(t[i]*10^(15-i), i=1..15), combinat:-permute([3$3, 5$5, 7$7])));
PROG
(Python)
from sympy import isprime
from sympy.utilities.iterables import multiset_permutations
def agen(): # generator of terms
for mp in multiset_permutations("333555557777777"):
if mp[-1] != "5":
t = int("".join(mp))
if isprime(t):
yield t
afull = [p for p in agen()] # Michael S. Branicky, Apr 07 2024
CROSSREFS
KEYWORD
nonn,base,fini,full
AUTHOR
Zak Seidov and Robert Israel, Apr 07 2024
STATUS
approved