OFFSET
1,1
COMMENTS
The final term is a(454) = 14141511414451435.
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..454 (full sequence)
MAPLE
a:=[[2], [3], [5]]: b:=[]: l1:=1: l2:=5: do for j from l1 to l2 do for k from 1 to 5 do d:=[op(a[j]), k]: if(isprime(op(convert(d, base, 6, 6^nops(d)))))then a:=[op(a), d]: fi: od: od: l1:=l2+1: l2:=nops(a): if(l1>l2)then break: fi: od: for j from 1 to nops(a) do b:=[op(b), op(convert(a[j], base, 10, 10^nops(a[j])))]: od: b:=sort(b): seq(b[j], j=1..nops(b)); # Nathaniel Johnston, Jun 21 2011
PROG
(Python)
from sympy import isprime
def afull():
prime_strings, alst = list("235"), []
while len(prime_strings) > 0:
alst.extend(sorted(int(p) for p in prime_strings))
candidates = set(d+p for p in prime_strings for d in "12345")
prime_strings = [c for c in candidates if isprime(int(c, 6))]
return alst
print(afull()) # Michael S. Branicky, Apr 27 2022
CROSSREFS
KEYWORD
nonn,base,easy,fini,full
AUTHOR
STATUS
approved