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

%I #11 Oct 29 2023 16:09:46

%S 17,67,107,163,167,173,317,367,607,613,617,673,719,769,1153,1213,1229,

%T 1277,1367,1373,1427,1553,1613,1663,1697,1699,1709,1733,1823,1907,

%U 1949,1997,2113,2417,2467,2663,3137,3163,3167,3413,3463,3613,3617,3637,3719

%N Primes that become a different prime under the mapping 1 <=> 6.

%H Robert Price, <a href="/A180529/b180529.txt">Table of n, a(n) for n = 1..2107</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, 1] || MemberQ[id, 6]) && PrimeQ[ FromDigits[ id /. {1 -> 6, 6 -> 1}] ]]; Select[ Prime@ Range@ 550, fQ]

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

%K base,nonn

%O 1,1

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