|
| |
|
|
A065726
|
|
Primes p such that the decimal expansion of its base 8 conversion is also prime.
|
|
2
| |
|
|
2, 3, 5, 7, 11, 19, 31, 43, 59, 67, 71, 89, 137, 151, 179, 191, 199, 223, 251, 257, 281, 283, 307, 311, 337, 353, 359, 367, 383, 409, 419, 433, 443, 449, 523, 563, 617, 619, 641, 659, 727, 787, 809, 811, 857, 887, 907, 919, 947, 977, 1033, 1039, 1097, 1123
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,1
|
|
|
COMMENTS
| In general rebase notation (Marc LeBrun): p(n) = (8) [p] (10).
|
|
|
LINKS
| Harry J. Smith, Table of n, a(n) for n=1,...,1000
|
|
|
EXAMPLE
| E.g. 787{10} = 1423{8} is prime but also 1423{10}.
|
|
|
MATHEMATICA
| Select[ Range[2500], PrimeQ[ # ] && PrimeQ[ FromDigits[ IntegerDigits[ #, 8]]] & ]
|
|
|
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, 8); if (isprime(b), write("b065726.txt", n++, " ", p); if (n==1000, return)) ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Oct 28 2009]
|
|
|
CROSSREFS
| Cf. A065720 up to A065727, A065361.
Sequence in context: A115617 A003064 A057429 * A118985 A092728 A089769
Adjacent sequences: A065723 A065724 A065725 * A065727 A065728 A065729
|
|
|
KEYWORD
| nonn,base
|
|
|
AUTHOR
| Patrick De Geest (pdg(AT)worldofnumbers.com), Nov 15 2001.
|
| |
|
|