login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A068832
Primes with all odd digits such that the next four primes also contain all odd digits.
3
3, 5, 7, 311, 15937, 17939, 19973, 39113, 51131, 53717, 53719, 55313, 59753, 91711, 93113, 99119, 111953, 117911, 117917, 117937, 153113, 157931, 159911, 191519, 195971, 311533, 355913, 391711, 391717, 391733, 575131, 575513, 577919, 577931, 579113
OFFSET
1,1
LINKS
EXAMPLE
311 belongs to this sequence as the next four primes 313, 317, 331 and 337 contain all odd digits.
MATHEMATICA
Prime/@Flatten[Position[Partition[Table[If[AllTrue[IntegerDigits[ n], OddQ], 1, 0], {n, Prime[Range[50000]]}], 5, 1], {1, 1, 1, 1, 1}]] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jan 20 2015 *)
PROG
(Magma) [NthPrime(n): n in [1..10^5] | forall{NthPrime(n+i): i in [0..4] | Intseq(NthPrime(n+i)) subset [1..9 by 2]}]; // Bruno Berselli, Aug 08 2013
CROSSREFS
Sequence in context: A211678 A082756 A268693 * A046472 A065824 A191546
KEYWORD
nonn,base
AUTHOR
Amarnath Murthy, Mar 09 2002
EXTENSIONS
More terms from Bruno Berselli, Aug 08 2013
STATUS
approved