login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A110778 Copies of 3 and 7 alternately such that every partial concatenation is a prime. 15
3, 7, 3, 777, 333, 777777777777777777777, 3333333, 7777777777777777777777777777777, 33333 (list; graph; refs; listen; history; text; internal format)
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
Cf. A112534. - Sean A. Irvine, Mar 21 2010
Sequence in context: A125314 A213244 A050393 * A200129 A365729 A181912
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Aug 12 2005
EXTENSIONS
More terms from Joshua Zucker, Jan 11 2006
The next term has 480 7's and is too large to include.
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 10:01 EDT 2024. Contains 371967 sequences. (Running on oeis4.)