A235464 Primes whose base-7 representation also is the base-2 representation of a prime.
7, 2801, 17207, 19559, 134513, 134807, 840743, 842759, 842801, 941249, 943601, 958007, 958049, 958343, 5899657, 6591089, 6607903, 6706393, 6722857, 41196751, 41311663, 41314057, 46137673, 46137967, 46253257, 46942351, 46944409, 47059657
Offset: 1
Examples
7 = 10_7 and 10_2 = 2 are both prime, so 7 is a term. 2801 = 11111_7 and 11111_2 = 31 are both prime, so 2801 is a term.
Links
Crossrefs
Programs
-
PARI
is(p,b=2,c=7)=vecmax(d=digits(p,c))
-
PARI
forprime(p=1,1e3,is(p,7,2)&&print1(vector(#d=digits(p,2),i,7^(#d-i))*d~,",")) \\ To produce the terms, this is much more efficient than to select them using straightforwardly is(.)=is(.,2,7)
Comments