|
|
A065721
|
|
Primes p whose base-3 expansion is also the decimal expansion of a prime.
|
|
41
|
|
|
2, 67, 79, 103, 139, 157, 181, 193, 199, 211, 229, 277, 283, 307, 313, 349, 367, 373, 409, 421, 433, 439, 463, 523, 541, 547, 571, 577, 751, 829, 883, 919, 1021, 1033, 1039, 1087, 1171, 1249, 1303, 1429, 1483, 1579, 1597, 1621, 1741, 1783, 1789, 1873
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
In general rebase notation (Marc LeBrun): p3 = (3) [p] (10).
|
|
LINKS
|
|
|
EXAMPLE
|
1033_10 = 1102021_3 is prime, and so is 1102021_10.
|
|
MATHEMATICA
|
Select[ Range[1900], PrimeQ[ # ] && PrimeQ[ FromDigits[ IntegerDigits[ #, 3]]] & ]
|
|
PROG
|
(PARI) baseE(x, b)= { local(d, e=0, f=1); while (x>0, d=x-b*(x\b); x\=b; e+=d*f; f*=10); return(e) } { n=0; for (m=1, 10^9, p=prime(m); b=baseE(p, 3); if (isprime(b), write("b065721.txt", n++, " ", p); if (n==1000, return)) ) } \\ Harry J. Smith, Oct 27 2009
(PARI) is(p, b=10, c=3)=isprime(vector(#c=digits(p, c), i, b^(#c-i))*c~)&&isprime(p) \\ M. F. Hasler, Jan 12 2014
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|