|
|
A110778
|
|
Copies of 3 and 7 alternately such that every partial concatenation is a prime.
|
|
15
|
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
EXAMPLE
|
3, 37, 373, 373777, ... are all prime.
|
|
MATHEMATICA
|
id[n_]:=IntegerDigits[n]; f[x_, y_]:=FromDigits[Flatten[Append[{x}, y]]]; a[x_, y_]:=NestWhile[f[id[#], y]&, f[id[x], y], !PrimeQ[#]&]; d[x_, y_]:=x-FromDigits[PadRight[id[y], Length[id[x]]]]; t={3}; x=3; Do[y=a[x, 7]; AppendTo[t, d[y, x]]; x=a[y, 3]; AppendTo[t, d[x, y]], {n, 4}]; t (* Jayanta Basu, May 20 2013 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
The next term has 480 7's and is too large to include.
|
|
STATUS
|
approved
|
|
|
|