|
|
A235474
|
|
Primes whose base-4 representation is also the base-5 representation of a prime.
|
|
4
|
|
|
2, 3, 11, 29, 31, 41, 101, 109, 139, 149, 151, 181, 199, 229, 239, 251, 269, 271, 281, 389, 409, 491, 509, 541, 547, 661, 751, 887, 911, 947, 991, 1021, 1051, 1061, 1069, 1091, 1151, 1279, 1289, 1381, 1409, 1471, 1549, 1709, 1759, 1801, 1999
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
This sequence is part of a two-dimensional array of sequences, given in the LINK, based on this same idea for any two different bases b, c > 1. Sequence A235265 and A235266 are the most elementary ones in this list. Sequences A089971, A089981 and A090707 through A090721, and sequences A065720 - A065727, follow the same idea with one base equal to 10.
For further motivation and cross-references, see sequence A235265 which is the main entry for this whole family of sequences.
|
|
LINKS
|
|
|
EXAMPLE
|
11 = 23_4 and 23_5 = 13 are both prime, so 11 is a term.
|
|
MATHEMATICA
|
Select[Prime[Range[400]], PrimeQ[FromDigits[IntegerDigits[#, 4], 5]]&] (* Harvey P. Dale, Dec 31 2017 *)
|
|
PROG
|
(PARI) is(p, b=5, c=4)=isprime(vector(#d=digits(p, c), i, b^(#d-i))*d~)&&isprime(p) \\ Note: This code is only valid for b > c.
|
|
CROSSREFS
|
Cf. A235266, A235473, A152079, A235475 - A235479, A065720 ⊂ A036952, A065721 - A065727, A235394, A235395, A089971 ⊂ A020449, A089981, A090707 - A091924, A235461 - A235482. See the LINK for further cross-references.
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|