A235627 Primes whose base-7 representation also is the base-5 representation of a prime.
2, 3, 7, 17, 23, 31, 53, 71, 73, 79, 101, 109, 113, 127, 151, 157, 197, 199, 359, 401, 409, 449, 463, 521, 541, 557, 743, 863, 1033, 1039, 1103, 1151, 1193, 1229, 1451, 1487, 1499, 1543, 2423, 2521, 2549, 2621, 2753, 2857, 2909, 2957, 3089, 3257, 3313, 3511, 3529, 3593
Offset: 1
Examples
Both 17 = 23_7 and 23_5 = 13 are prime.
Links
- Robert Price, Table of n, a(n) for n = 1..13736
- M. F. Hasler, Primes whose base c expansion is also the base b expansion of a prime
Crossrefs
Programs
-
PARI
is(p,b=5,c=7)=vecmax(d=digits(p,c))
-
PARI
forprime(p=1,3e3,is(p,7,5)&&print1(vector(#d=digits(p,5),i,7^(#d-i))*d~,",")) \\ To produce the terms, this is more efficient than to select them using straightforwardly is(.)=is(.,5,7)
Comments