A235477 Primes whose base-2 representation also is the base-7 representation of a prime.
2, 31, 47, 59, 103, 107, 173, 179, 181, 199, 211, 227, 229, 233, 367, 409, 443, 463, 487, 701, 743, 757, 823, 827, 877, 911, 919, 967, 1009, 1123, 1163, 1291, 1321, 1367, 1373, 1447, 1493, 1571, 1583, 1597, 1609, 1627, 1657, 1669, 1721, 1831, 1933, 1987
Offset: 1
Examples
31 = 11111_2 and 11111_7 = 2801 are both prime, so 31 is a term.
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
- M. F. Hasler, Primes whose base c expansion is also the base b expansion of a prime
Crossrefs
Programs
-
Mathematica
Select[Prime[Range[300]],PrimeQ[FromDigits[IntegerDigits[#,2],7]]&] (* Harvey P. Dale, May 08 2021 *)
-
PARI
is(p,b=7)=isprime(vector(#d=binary(p),i,b^(#d-i))*d~)&&isprime(p)
Comments