OFFSET
1,1
COMMENTS
In general rebase notation (Marc LeBrun): p6 = (6) [p] (10).
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
E.g., 1627_10 = 11311_6 is prime, and so is 11311_10.
MATHEMATICA
Select[ Range[1900], PrimeQ[ # ] && PrimeQ[ FromDigits[ IntegerDigits[ #, 6]]] & ]
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, 6); if (isprime(b), write("b065724.txt", n++, " ", p); if (n==1000, return)) ) } \\ Harry J. Smith, Oct 27 2009
(PARI) isok(p) = isprime(p) && isprime(fromdigits(digits(p, 6), 10)); \\ Michel Marcus, Mar 05 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Nov 15 2001
STATUS
approved