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

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

%S 43,47,109,149,307,347,401,419,431,443,461,467,479,601,607,641,647,

%T 907,947,1033,1039,1049,1051,1087,1093,1409,1433,1439,1451,1487,1493,

%U 2011,2017,2203,2243,2411,2417,2503,2543,2803,2843,3061,3067,3307,3347,3461

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

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

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

%K base,nonn

%O 1,1

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