login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A068703 Primes in the concatenation n,n+1, n+2, n+1, n. 1
34543, 1718191817, 2324252423, 3334353433, 3940414039, 7778797877, 8788898887, 123124125124123, 153154155154153, 159160161160159, 173174175174173, 207208209208207, 227228229228227, 279280281280279 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 1..1000

EXAMPLE

1718191817 is a term as the concatenation of 17,18,19,18 and 17.

MAPLE

for n from 1 to 1500 do a := n+10^( floor(evalf(log(n)/log(10))+0.0000000001 )+1)*(n+1); a := a+10^( floor(evalf(log(a)/log(10))+0.0000000001 )+1)*(n+2); a := a+10^( floor(evalf(log(a)/log(10))+0.0000000001 )+1)*(n+1); a := a+10^( floor(evalf(log(a)/log(10))+0.0000000001 )+1)*n; b[n] := a:end do:k := 0:for n from 2 to 1500 doif(isprime(b[n]) ) then k := k+1:c[k] := b[n]:end if:end do:seq(c[j], j=1..k);

MATHEMATICA

Select[Table[FromDigits[Flatten[{IntegerDigits[n], IntegerDigits[n+1], IntegerDigits[n+2], IntegerDigits[n+1], IntegerDigits[n], {}}]], {n, 1000}], PrimeQ] (* Vincenzo Librandi, Mar 13 2013 *)

PROG

(MAGMA) [m: n in [1..300] | IsPrime(m) where m is Seqint([] cat Intseq(n) cat Intseq(n+1) cat Intseq(n+2) cat Intseq(n+1) cat Intseq(n))]; // Vincenzo Librandi, Mar 13 2013

CROSSREFS

Sequence in context: A233872 A055001 A164556 * A225025 A081428 A237955

Adjacent sequences:  A068700 A068701 A068702 * A068704 A068705 A068706

KEYWORD

nonn,base

AUTHOR

Amarnath Murthy, Mar 04 2002

EXTENSIONS

More terms from Sascha Kurz, Mar 27 2002

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 8 05:50 EDT 2020. Contains 336290 sequences. (Running on oeis4.)