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