The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A236528 Start with 4; thereafter, primes obtained by concatenating to the end of previous term the next smallest number that will produce a prime. 0
4, 41, 419, 41911, 4191119, 41911193, 419111933, 41911193341, 4191119334151, 419111933415151, 41911193341515187, 4191119334151518719, 419111933415151871963, 41911193341515187196323, 4191119334151518719632313, 419111933415151871963231329 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(n+1) is the next smallest prime beginning with a(n). Initial term is 4.
After a(1), these are the primes arising in A069606.
LINKS
EXAMPLE
a(1) = 4 by definition.
a(2) is the next smallest prime beginning with 4, so a(2) = 41.
a(3) is the next smallest prime beginning with 41, so a(3) = 419.
...and so on.
PROG
(Python)
import sympy
from sympy import isprime
def b(x):
..num = str(x)
..n = 1
..while n < 10**3:
....new_num = str(x) + str(n)
....if isprime(int(new_num)):
......print(int(new_num))
......x = new_num
......n = 1
....else:
......n += 1
b(4)
CROSSREFS
Sequence in context: A193368 A109109 A227996 * A114467 A118450 A024383
KEYWORD
nonn,base
AUTHOR
Derek Orr, Jan 27 2014
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 June 3 20:36 EDT 2024. Contains 373088 sequences. (Running on oeis4.)