login
Primes that become a different prime under the mapping 0 <=> 2.
46

%I #11 Oct 29 2023 01:52:56

%S 23,107,127,211,223,227,241,271,283,401,421,503,523,809,829,1009,1013,

%T 1021,1031,1049,1091,1097,1103,1109,1123,1129,1201,1213,1229,1231,

%U 1249,1291,1297,1301,1307,1321,1327,1409,1429,1601,1607,1621,1627,2003,2011

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

%H Robert Price, <a href="/A180517/b180517.txt">Table of n, a(n) for n = 1..2511</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, 2]) && PrimeQ[ FromDigits[ id /. {0 -> 2, 2 -> 0}] ]]; Select[ Prime@ Range@ 350, fQ]

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

%K base,nonn

%O 1,1

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