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!)
A107367 Primes whose digits do not appear in three previous terms. 0
2, 3, 5, 7, 11, 23, 59, 67, 101, 223, 449, 557, 601, 823, 4999, 5557, 6011, 8233, 9949, 57557, 60101, 82223, 94949, 555557, 600011, 822223, 994949, 5555777, 6000011, 8222323, 9444949 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Cf. A030284 = Primes whose digits do not appear in previous term, A107798 = Primes whose digits do not appear in two previous terms.
LINKS
MATHEMATICA
d=2; e=3; f=5; b={2, 3, 5}; id[t_]:=IntegerDigits[t]; Do[p=Prime[n]; If[Intersection[Union[id[d], id[e], id[f]], id[p]]=={}, b=Append[b, p]; d=e; e=f; f=p], {n, 100000}]; b
nxt[{a_, b_, c_}]:=Module[{dgs=Union[Flatten[IntegerDigits/@{a, b, c}]], d = NextPrime[ c]}, While[ Intersection[dgs, IntegerDigits[d]]!={}, d= NextPrime[d]]; {b, c, d}]; NestList[nxt, {2, 3, 5}, 30][[All, 1]] (* Harvey P. Dale, Oct 11 2021 *)
CROSSREFS
Sequence in context: A107798 A119660 A079148 * A036342 A114421 A167119
KEYWORD
nonn,base
AUTHOR
Zak Seidov, May 24 2005
EXTENSIONS
More terms from Harvey P. Dale, Oct 11 2021
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 06:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)