OFFSET
1,1
COMMENTS
This is to three (duplicated strings concatenated) as A210511 is to two (duplicated strings concatenated).
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1) = 2221 because "2" concatenated with "2" concatenated with "2" concatenated with "1" = 2221, which is prime.
9393931 is not in the sequence, even though formed by concatenating n, n, n, and 1 for n = 93, because 9393931 = 211^3 is composite.
MATHEMATICA
Select[Table[FromDigits[Flatten[{IntegerDigits[n], IntegerDigits[n], IntegerDigits[n], IntegerDigits[1], {}}]], {n, 1000}], PrimeQ] (* Vincenzo Librandi, Mar 13 2013 *)
Select[FromDigits/@Table[Flatten[IntegerDigits/@PadLeft[{1}, 4, n]], {n, 120}], PrimeQ] (* Harvey P. Dale, May 12 2015 *)
PROG
(Magma) [nnn1: n in [1..120] | IsPrime(nnn1) where nnn1 is Seqint([1] cat Intseq(n) cat Intseq(n) cat Intseq(n))]; // Bruno Berselli, Jan 30 2013
(PARI) a(n) = { my(p=Str(prime(n))); eval(concat(concat(concat(p, p), p), 1)); } /* Joerg Arndt, Mar 14 2013 */
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Jonathan Vos Post, Jan 29 2013
STATUS
approved
