A237601 Number of n-digit right-truncatable primes in base 16.
6, 16, 37, 60, 74, 77, 63, 39, 22, 11, 5, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Offset: 1
Examples
a(2)=16 because there are 16 right truncatable hex numbers with two hex digits: 25,29,2B,2F,35,3B,3D,53,59,71,7F,B3,B5,BF,D3,DF.
Links
- Stanislav Sykora, PARI/GP scripts for genetic threads
Programs
-
PARI
See the link (use GT_DivMod0 with arguments "isprime" for "property" and 16 for "b").
-
PARI
A237601=vector(15,n,#p=concat(apply(t->primes([t,t+1]*16),if(n>1,p)))) \\ M. F. Hasler, Nov 07 2018
Formula
a(n) = 0 for n >= 15.
Comments