login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A180555 Primes that become a different prime under the mapping 6 <=> 7. 1
61, 71, 163, 173, 601, 619, 643, 701, 719, 743, 1609, 1621, 1709, 1721, 1861, 1871, 2689, 2789, 3361, 3371, 3671, 3761, 4261, 4271, 4363, 4373, 4603, 4621, 4651, 4703, 4721, 4751, 4861, 4871, 5563, 5573, 5641, 5669, 5683, 5741, 5779, 5783, 5869, 5879 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
Index to Primes, Primes that become a different prime under some mapping.
MAPLE
g:= proc(n) local L, i;
L:= subs({6=7, 7=6}, convert(n, base, 10));
add(L[i]*10^(i-1), i=1..nops(L))
end proc:
filter:= proc(x) local y;
if not isprime(x) then return false fi;
y:= g(x);
y <> x and isprime(y)
end proc:
select(filter, [seq(i, i=3..10000, 2)]); # Robert Israel, Nov 12 2019
MATHEMATICA
fQ[n_] := Block[{id = IntegerDigits@n}, (MemberQ[id, 6] || MemberQ[id, 7]) && PrimeQ[ FromDigits[ id /. {6 -> 7, 7 -> 6}] ]]; Select[ Prime@ Range@ 780, fQ]
CROSSREFS
Sequence in context: A043993 A165287 A064229 * A039478 A109549 A139944
KEYWORD
base,nonn
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 03:30 EDT 2024. Contains 371906 sequences. (Running on oeis4.)