OFFSET
1,1
COMMENTS
In general rebase notation (Marc LeBrun): p7 = (7) [p] (10).
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
E.g., 787_10 = 2203_7 is prime, and so is 2203_10.
MATHEMATICA
Select[ Range[2500], PrimeQ[ # ] && PrimeQ[ FromDigits[ IntegerDigits[ #, 7]]] & ]
Select[Prime[Range[300]], PrimeQ[FromDigits[IntegerDigits[#, 7]]]&] (* Harvey P. Dale, Nov 10 2022 *)
PROG
(PARI) isok(p) = isprime(p) && isprime(fromdigits(digits(p, 7), 10)); \\ Michel Marcus, Mar 05 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Nov 15 2001
STATUS
approved
