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!)
A053584 a(n+1) is the smallest prime ending with a(n), where a(1)=7. 5
7, 17, 317, 6317, 26317, 126317, 2126317, 72126317, 372126317, 5372126317, 125372126317, 15125372126317, 415125372126317, 23415125372126317, 2223415125372126317, 152223415125372126317, 21152223415125372126317, 4221152223415125372126317 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..372
PROG
(Python)
from sympy import isprime
from itertools import count, islice
def agen(an=7):
while True:
yield an
pow10 = 10**len(str(an))
for t in count(pow10+an, step=pow10):
if isprime(t):
an = t
break
print(list(islice(agen(), 18))) # Michael S. Branicky, Jun 23 2022
CROSSREFS
Sequence in context: A092240 A110120 A201305 * A077715 A089563 A159028
KEYWORD
base,nonn
AUTHOR
G. L. Honaker, Jr., Jan 18 2000
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 19 18:05 EDT 2024. Contains 371798 sequences. (Running on oeis4.)