OFFSET
1,1
COMMENTS
Only primes containing at least one "2" and one "9" are considered.
Inspired by history (told by VIA himself) that most often mistakes made by V. I. Arnold were caused by mixing 2's and 9's (and also 3's and 5's) in the lengthy calculations by hand.
LINKS
EXAMPLE
2293, 9923 both primes; 2393, 9323 both primes.
MATHEMATICA
p = 29; Reap[Do[id = IntegerDigits[p]; If[Count[id, 2] > 0 && Count[id, 9] > 0 && PrimeQ[FromDigits[(id /. {2 -> a, 9 -> 2}) /. {a -> 9}]], Sow[p]]; p = NextPrime[p], {10^4}]][[2, 1]]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Zak Seidov, Oct 21 2011
STATUS
approved