A235476 Primes whose base-2 representation also is the base-6 representation of a prime.
3, 5, 7, 11, 17, 19, 29, 41, 53, 67, 101, 127, 193, 263, 281, 337, 353, 431, 461, 479, 487, 499, 523, 593, 599, 631, 743, 757, 773, 821, 823, 829, 857, 883, 887, 941, 1013, 1021, 1093, 1117, 1259, 1279, 1303, 1367, 1373, 1429, 1439, 1459, 1471, 1483, 1493, 1511, 1583, 1619, 1699, 1759, 1831, 1847, 1879, 1931, 1951, 1987
Offset: 1
Examples
5 = 101_2 and 101_6 = 37 are both prime, so 5 is a term. 7 = 111_2 and 111_6 = 43 are both prime, so 7 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],6]]&] (* Harvey P. Dale, Jan 03 2022 *)
-
PARI
is(p,b=6)=isprime(vector(#d=binary(p),i,b^(#d-i))*d~)&&isprime(p)
Comments