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!)
A154965 Composites n such that concatenation of n and n-th prime is prime. 1
4, 6, 12, 18, 27, 30, 35, 36, 42, 45, 46, 54, 56, 57, 58, 82, 85, 92, 93, 99, 115, 117, 119, 121, 123, 136, 141, 145, 147, 159, 161, 171, 175, 176, 177, 206, 215, 222, 225, 237, 243, 261, 273, 274, 282, 285, 291, 295, 296, 303, 309, 315, 319, 322, 327, 328, 332 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
Concatenation of composite 4 and fourth prime 7 is the prime 47, hence 4 is in the sequence. Concatenation of composite 36 and 36th prime 151 is the prime 36151, hence 36 is in the sequence.
MATHEMATICA
concatQ[n_]:=PrimeQ[FromDigits[Join[IntegerDigits[n], IntegerDigits[ Prime[n]]]]]; nn=400; Select[Complement[Range[nn], Prime[Range[ PrimePi[nn]]]], concatQ] (* Harvey P. Dale, Jun 05 2011 *)
PROG
(Magma) [ n: n in [1..340] | not IsPrime(n) and IsPrime(StringToInteger(IntegerToString(n) cat IntegerToString(NthPrime(n)))) ];
CROSSREFS
Cf. A000040 (primes), A002808 (composites).
Sequence in context: A310600 A296507 A072568 * A249630 A109290 A130441
KEYWORD
nonn,base,easy,less
AUTHOR
EXTENSIONS
Edited and extended beyond a(4) by Klaus Brockhaus, Jan 20 2009
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 May 14 01:40 EDT 2024. Contains 372528 sequences. (Running on oeis4.)