login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A038394
Concatenate first n primes in reverse order.
5
2, 32, 532, 7532, 117532, 13117532, 1713117532, 191713117532, 23191713117532, 2923191713117532, 312923191713117532, 37312923191713117532, 4137312923191713117532, 434137312923191713117532, 47434137312923191713117532, 5347434137312923191713117532
OFFSET
1,1
REFERENCES
F. Smarandache, Sequences of Numbers Involved in Unsolved Problems, Hexis, Phoenix, 2006.
MATHEMATICA
Join[{s = 2}, Table[s = FromDigits[Flatten[IntegerDigits[{Prime[n], s}]]], {n, 2, 13}]] (* Jayanta Basu, Jul 14 2013 *)
PROG
(Haskell)
a038394 n = a038394_list !! (n-1)
a038394_list = f "" a000040_list where
f xs (q:qs) = (read ys :: Integer) : f ys qs
where ys = show q ++ xs
-- Reinhard Zumkeller, Mar 03 2014
(PARI) a(n) = fromdigits(concat([digits(p) | p<-Vecrev(primes(n))])); \\ Andrew Howroyd, Aug 29 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. I. Petrescu (mipetrescu(AT)yahoo.com)
EXTENSIONS
Offset corrected by Reinhard Zumkeller, Mar 03 2014
STATUS
approved