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!)
A341717 a(n) = smallest m >= n such that the decimal concatenation n||n+1||n+2||...||m is prime, or -1 if no such prime exists. 10
2, 3, 7, 5, 7, 7, 9, 187 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,1
COMMENTS
These are the values of n+k from A341715. See that entry for more information.
See A084559 (the same for nonprime indices) for further information. - M. F. Hasler, Feb 22 2021
Suppose n > 3. If n == 2 (mod 3), then a(n) == 3 or 5 (mod 6). If n = 0 or 1 (mod 3), then a(n) == 1 (mod 6) (see A341716). - Chai Wah Wu, Feb 22 2021
LINKS
FORMULA
a(n) = n iff n is prime, otherwise a(n) = A084559(n). - M. F. Hasler, Feb 22 2021
MATHEMATICA
Array[Block[{k = #, s = #}, While[! PrimeQ[s], k++; s = FromDigits[IntegerDigits[s]~Join~IntegerDigits[k]]]; k] &, 8, 2] (* Michael De Vlieger, Feb 22 2021 *)
PROG
(PARI) A341717(n)=if(isprime(n), n, A084559(n)) \\ M. F. Hasler, Feb 22 2021
CROSSREFS
Sequence in context: A333386 A357579 A334126 * A225403 A069786 A128804
KEYWORD
nonn,base,more
AUTHOR
N. J. A. Sloane, Feb 22 2021
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 July 15 19:27 EDT 2024. Contains 374334 sequences. (Running on oeis4.)