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!)
A154967 Nonprime numbers n such that concatenation of n and n-th prime is composite. 1
1, 8, 9, 10, 14, 15, 16, 20, 21, 22, 24, 25, 26, 28, 32, 33, 34, 38, 39, 40, 44, 48, 49, 50, 51, 52, 55, 60, 62, 63, 64, 65, 66, 68, 69, 70, 72, 74, 75, 76, 77, 78, 80, 81, 84, 86, 87, 88, 90, 91, 94, 95, 96, 98, 100, 102, 104, 105, 106, 108, 110, 111, 112, 114, 116, 118 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
The concatenation of the nonprime 1 and the first prime 2 is the composite 12, hence 1 is in the sequence.
Concatenation of nonprime 9 and ninth prime 23 is the composite 923 = 13*71, hence 9 is in the sequence.
MATHEMATICA
Select[Range[120], !PrimeQ[#]&&CompositeQ[FromDigits[Join[ IntegerDigits[ #], IntegerDigits[ Prime[#]]]]]&] (* Harvey P. Dale, Mar 08 2018 *)
PROG
(Magma) [ n: n in [1..118] | not IsPrime(n) and not IsPrime(StringToInteger(IntegerToString(n) cat IntegerToString(NthPrime(n)))) ];
CROSSREFS
Cf. A000040 (primes), A002808 (composites), A018252 (nonprime numbers).
Sequence in context: A338026 A359881 A164276 * A271211 A341044 A072381
KEYWORD
nonn,base,easy,less
AUTHOR
EXTENSIONS
Edited and extended beyond a(12) 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 20 12:27 EDT 2024. Contains 372712 sequences. (Running on oeis4.)