login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A334726 a(k) is the earliest start of sequence of exactly k primes generated according to the rules stipulated in A005150. 0
1, 2, 3, 7, 373, 1223, 233, 19972667609, 75022592087629 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
Carlos Rivera, Puzzle 36. Sequences of "descriptive primes", The Prime Puzzles and Problems Connection.
Carlos Rivera, Puzzle 999. In Memoriam to John Horton Conway, The Prime Puzzles and Problems Connection.
EXAMPLE
The sequence starting at 7 is 7 (prime), 17 (prime), 1117 (prime), and 3117 (composite), so a(3) = 7.
PROG
(Python)
from sympy import isprime, nextprime
from itertools import count, groupby, islice
def LS(n):
return int(''.join(str(len(list(g)))+k for k, g in groupby(str(n))))
def f(n): return 0 if not isprime(n) else 1 + f(LS(n))
def agen(startn=0, startk=1):
n, adict = startn, {i:-1 for i in range(startn)}
for k in count(startk):
fk = f(k)
if fk not in adict: adict[fk] = k
while n in adict: yield adict[n]; n += 1
print(list(islice(agen(), 7))) # Michael S. Branicky, Jul 27 2022
CROSSREFS
Sequence in context: A084727 A100763 A132538 * A062615 A180162 A129907
KEYWORD
nonn,base,more,hard
AUTHOR
Giovanni Resta, May 09 2020
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 07:53 EDT 2024. Contains 371964 sequences. (Running on oeis4.)