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!)
A372207 a(n) is the smallest prime number that is obtained by concatenating 2 consecutive n-digit integers. 1
23, 1213, 102101, 10021001, 1000810007, 100010100011, 10000241000023, 1000004210000041, 100000002100000003, 10000000081000000009, 1000000000810000000007, 100000000002100000000001, 10000000000021000000000001, 1000000000001010000000000011, 100000000000002100000000000003 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
It is possible to form primes by concatenating an integer with its successor (A030458), as well as by concatenating an integer with its predecessor (A052089).
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..500
EXAMPLE
a(3) = 102101, since when concatenating 3-digit numbers, the first three numbers obtained, in increasing order, are 100101, 101100, 101102, which are composite, while the next number in the list is 102101, which is prime.
PROG
(Python)
from sympy import isprime
def a(n):
if n == 1: return 23
lb, ub = 10**(n-1), 10**n
for k in range(lb, ub, 2):
base = k*ub
for inc in [k-1, k+1]:
if inc >= lb and isprime(t:=base+inc):
return t
print([a(n) for n in range(1, 16)]) # Michael S. Branicky, May 19 2024
CROSSREFS
Sequence in context: A340487 A321569 A061063 * A100768 A353143 A201309
KEYWORD
nonn,base
AUTHOR
Gonzalo Martínez, May 19 2024
EXTENSIONS
a(12) and beyond from Michael S. Branicky, May 19 2024
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 August 12 19:26 EDT 2024. Contains 375113 sequences. (Running on oeis4.)