OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..10000
EXAMPLE
For the nonprime n=1, p = prime(n) = 2, the concatenation is 12 is composite, and p is added to the sequence.
For the nonprime n=8, p = prime(8) = 19, the concatenation 819 is composite, and p=19 is added to the sequence.
For the nonprime n=12, p = prime(12) = 37, the concatenation 1237 is prime, so p=37 is not added to the sequence.
MATHEMATICA
cnQ[{n_, p_}]:=!PrimeQ[n]&&!PrimeQ[FromDigits[Flatten[ IntegerDigits/@ {n, p}]]]; Transpose[Select[Table[{n, Prime[n]}, {n, 150}], cnQ]][[2]] (* Harvey P. Dale, Dec 18 2012 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Juri-Stepan Gerasimov, Jan 19 2009
EXTENSIONS
Definition clarified, sequence extended by R. J. Mathar, Oct 14 2009
STATUS
approved