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!)
A224322 Primes without "9" as a digit that remain prime when any single digit is replaced with "9". 3
17, 107, 137, 347, 1013, 1433, 1613, 3767, 4337, 8623, 25633, 31114073 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
No more terms < 10^13.
LINKS
Carlos Rivera, Puzzle 591
MATHEMATICA
lst = {}; n = 9; Do[If[PrimeQ[p], i = IntegerDigits[p]; If[FreeQ[i, n], t = 0; s = IntegerLength[p]; Do[If[PrimeQ@FromDigits@Insert[Drop[i, {d}], n, d], t++, Break[]], {d, s}]; If[t == s, AppendTo[lst, p]]]], {p, 25633}]; lst
pr9Q[n_]:=Module[{idn=IntegerDigits[n]}, FreeQ[idn, 9]&&AllTrue[Table[ FromDigits[ ReplacePart[ idn, i->9]], {i, Length[idn]}], PrimeQ]]; Select[ Prime[Range[2*10^6]], pr9Q] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Mar 30 2015 *)
CROSSREFS
Cf. A224319-A224321. Subsequence of A038617.
Sequence in context: A268263 A343706 A282323 * A142321 A007682 A125327
KEYWORD
base,more,nonn
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 April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)