The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A267690 Numbers n such that replacing any single decimal digit d with d/3 produces a prime (obviously n can contain only digits 3, 6 or 9). 0
6, 9, 33, 63, 633 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
633 belongs to this sequence because 631, 613 and 233 are all prime.
MATHEMATICA
Select[FromDigits /@ Flatten[Map[Tuples[{3, 6, 9}, #] &, Range@ 3], 1], Function[n, AllTrue[Function[k, FromDigits@ MapAt[#/3 &, k, #] & /@ Range@ Length@ k]@ IntegerDigits@ n, And[PrimeQ@ #, # != n] &]]] (* Michael De Vlieger, Jan 20 2016, Version 10 *)
CROSSREFS
Cf. A008585.
Sequence in context: A147415 A217048 A105866 * A084007 A046634 A166624
KEYWORD
nonn,base,fini,full
AUTHOR
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 May 28 18:29 EDT 2024. Contains 372919 sequences. (Running on oeis4.)