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!)
A236529 Primes arising in A069607. 0
5, 53, 5323, 53231, 532313, 5323139, 532313921, 5323139219, 532313921921, 53231392192123, 5323139219212343, 53231392192123433, 5323139219212343323, 53231392192123433237, 5323139219212343323721, 532313921921234332372189, 53231392192123433237218937, 5323139219212343323721893721 (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 5.
LINKS
EXAMPLE
a(1) = 5.
a(2) is the next smallest prime that begins with 5, so a(2) = 53.
a(3) is the next smallest prime that begins with 53, so a(3) = 5323.
...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(5)
CROSSREFS
Sequence in context: A106045 A168568 A048551 * A083757 A093674 A129664
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 March 28 08:22 EDT 2024. Contains 371236 sequences. (Running on oeis4.)