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”).

A163754
Exactly two distinct primes occur as substrings of the digits of n.
2
13, 17, 25, 27, 29, 31, 32, 35, 43, 47, 52, 57, 59, 67, 71, 72, 75, 79, 83, 97, 103, 107, 112, 115, 119, 125, 129, 130, 133, 134, 136, 138, 143, 147, 151, 152, 159, 163, 170, 174, 176, 177, 178, 183, 191, 192, 195, 199, 203, 205, 207, 215, 219, 225, 245, 250
OFFSET
1,1
COMMENTS
If n is a term, then so are 10*n, 10*n+4, 10*n+6 and 10*n+8. - Robert Israel, May 15 2020
LINKS
FORMULA
By Robert Israel's comment, a(n) << n^k, where k = 1.4306... = log(10)/log(5) =
EXAMPLE
a(3) = 25 because "2" and "5" are prime substrings of "25".
MAPLE
filter:= proc(n) local L, S, i, j, k;
L:= convert(n, base, 10);
nops(select(isprime, {seq(seq(add(L[i]*10^(i-j), i=j..k), j=1..k), k=1..nops(L))}))=2
end proc:
select(filter, [$1..300]); # Robert Israel, May 15 2020
CROSSREFS
Cf. A154156.
Sequence in context: A145483 A349978 A125262 * A104278 A129070 A335036
KEYWORD
base,easy,nonn
AUTHOR
Gil Broussard, Aug 03 2009
STATUS
approved