login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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

%I #11 Oct 29 2023 16:10:49

%S 83,101,181,809,811,823,829,853,859,883,887,1009,1031,1061,1301,1381,

%T 1409,1489,1709,1789,1831,1861,1889,1907,1987,2081,2083,2207,2287,

%U 2309,2389,2609,2689,2801,2803,3001,3023,3083,3803,3823,3881,4013,4703,4783

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

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

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

%K base,nonn

%O 1,1

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