[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Revision History for A053582 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
a(n+1) is the smallest prime ending with a(n), where a(1)=1.
(history; published version)
#29 by Joerg Arndt at Sat Dec 30 23:49:05 EST 2023
STATUS

editing

approved

#28 by Paolo P. Lava at Sat Dec 30 13:40:07 EST 2023
MAPLE

P:=proc(q, h) local a, b, c, d, n; a:=h; b:=1; print(1);

for n from 1 to q do if isprime(n) then if a=(n mod 10^b) then print(n);

a:=n; d:=a; b:=0; while d>0 do b:=b+1; d:=trunc(d/10);

od; fi; fi; od; end: P(10^25, 1); # Paolo P. Lava, Jul 15 2014

# Alternative:

STATUS

approved

editing

#27 by Alois P. Heinz at Thu Jun 23 12:36:13 EDT 2022
STATUS

reviewed

approved

#26 by Michel Marcus at Thu Jun 23 12:21:53 EDT 2022
STATUS

proposed

reviewed

#25 by Michael S. Branicky at Thu Jun 23 12:04:26 EDT 2022
STATUS

editing

proposed

#24 by Michael S. Branicky at Thu Jun 23 11:53:21 EDT 2022
DATA

1, 11, 211, 4211, 34211, 234211, 4234211, 154234211, 3154234211, 93154234211, 2093154234211, 42093154234211, 342093154234211, 11342093154234211, 3111342093154234211, 63111342093154234211, 2463111342093154234211, 232463111342093154234211

PROG

(Python)

from sympy import isprime

from itertools import count, islice

def agen(an=1): # generator of terms

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
STATUS

approved

editing

#23 by Michel Marcus at Fri Sep 25 05:47:27 EDT 2020
STATUS

reviewed

approved

#22 by Joerg Arndt at Fri Sep 25 04:32:29 EDT 2020
STATUS

proposed

reviewed

#21 by Robert Israel at Thu Sep 24 22:25:28 EDT 2020
STATUS

editing

proposed

Discussion
Fri Sep 25
00:59
Michel Marcus: maybe see A261114 history #17  ?
02:21
Michel Marcus: A261114  was recycled in favor of A048553
02:23
Michel Marcus: there are 6 other entries that point to A261114  but should not do
02:30
Michel Marcus: I edited them
#20 by Robert Israel at Thu Sep 24 22:25:12 EDT 2020
MAPLE

# Alternative:

R:= 1: v:= 1:

for iter from 1 to 30 do

d:= ilog10(v)+1;

for x from v+10^d by 10^d do

if isprime(x) then R:= R, x; v:= x; break fi

od

od:

R; # Robert Israel, Sep 24 2020

CROSSREFS