OFFSET
1,1
COMMENTS
In general rebase notation (Marc LeBrun): p5 = (5) [p] (10).
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
EXAMPLE
E.g., 2213_10 = 32323_5 is prime, and so is 32323_10.
MATHEMATICA
Select[ Range[2250], PrimeQ[ # ] && PrimeQ[ FromDigits[ IntegerDigits[ #, 5]]] & ]
Select[Prime[Range[400]], PrimeQ[FromDigits[IntegerDigits[#, 5]]]&] (* Harvey P. Dale, Mar 28 2015 *)
PROG
(PARI) isok(p)={ isprime(p) && isprime(fromdigits(digits(p, 5))) } \\ Harry J. Smith, Oct 27 2009
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Nov 15 2001
STATUS
approved