login
Primes that become a different prime under the mapping 0 <=> 9.
1

%I #11 Oct 29 2023 23:18:52

%S 97,101,103,107,191,193,197,307,397,401,491,503,593,601,691,907,911,

%T 937,941,947,953,967,971,983,997,1013,1031,1033,1051,1087,1091,1097,

%U 1103,1193,1201,1291,1607,1697,1901,1907,1913,1931,1933,1951,1987,2017,2027

%N Primes that become a different prime under the mapping 0 <=> 9.

%H Robert Price, <a href="/A180524/b180524.txt">Table of n, a(n) for n = 1..2874</a>

%H <a href="/index/Pri#primes">Index to Primes</a>, Primes that become a different prime under some mapping.

%t fQ[n_] := Block[{id = IntegerDigits@n}, (MemberQ[id, 0] || MemberQ[id, 9]) && PrimeQ[ FromDigits[ id /. {0 -> 9, 9 -> 0}] ]]; Select[ Prime@ Range@ 700, fQ]

%Y Cf. A171049, A175791, A180517 thru A180559, A175789, A180560, A180561.

%K base,nonn

%O 1,1

%A _Zak Seidov_ and _Robert G. Wilson v_, Sep 09 2010