|
|
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
|
|
|
KEYWORD
|
nonn,base,easy,less
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|