OFFSET
2,1
FORMULA
Consider triangles with sides (2, 3, 3), (3, 5, 5), .., (x, y, y) where x is prime and y is the next prime after x. Concatenate these sides for output.
EXAMPLE
For side x = 7, y = 11 to get concatenate 71111.
MATHEMATICA
con[a_, b_]:=FromDigits[Join[IntegerDigits[a], IntegerDigits[b], IntegerDigits[ b]]]; con@@@Partition[Prime[Range[50]], 2, 1] (* Harvey P. Dale, Jul 25 2011 *)
PROG
(PARI) f(n) = for(x=1, n, y=Str(prime(x)); y=concat(y, concat(Str(prime(x+1)), Str(prime (x+1)))); print1(y", "))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Cino Hilliard, Aug 23 2004
STATUS
approved