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

A158314
Consider a twin prime pair (p, q=p+2) such that the number of prime digits in p is equal to the number of odd digits in q; sequence lists values of p.
0
3, 5, 59, 281, 347, 521, 599, 659, 821, 857, 1277, 1427, 2081, 2381, 2729, 2801, 3251, 3359, 3467, 3539, 3557, 3767, 3821, 4127, 4217, 4229, 4241, 4271, 4337, 4421, 4547, 4637, 4721, 4787, 4799, 5021, 5231, 5477, 5639, 5657, 5867, 5879, 6359, 6659, 6779
OFFSET
1,1
MATHEMATICA
npdQ[{m_, n_}]:=Module[{r=Count[IntegerDigits[m], _?PrimeQ]}, n-m==2&&r==Count[IntegerDigits[n], _?OddQ]]; Select[Partition[ Prime[ Range[ 1000]], 2, 1], npdQ][[All, 1]] (* Harvey P. Dale, May 18 2019 *)
CROSSREFS
Cf. A001359.
Sequence in context: A337924 A049190 A174920 * A249011 A261533 A118477
KEYWORD
nonn,base,less
AUTHOR
EXTENSIONS
Better definition from and data corrected (2381 to 3359 inserted) by R. J. Mathar, May 19 2010
Definition edited by N. J. A. Sloane, May 18 2019
STATUS
approved