A080165 Primes having initial digits "10" in binary representation.
2, 5, 11, 17, 19, 23, 37, 41, 43, 47, 67, 71, 73, 79, 83, 89, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 521, 523, 541, 547, 557, 563
Offset: 1
Examples
A000040(15)=47 -> '101111' therefore 47 is a term.
Links
- Alois P. Heinz, Table of n, a(n) for n = 1..20000
- G. Harman, Primes in short intervals, Math. Zeit., 180 (1982), 335-348.
Crossrefs
Programs
-
Mathematica
Select[Prime[Range[1000]], IntegerDigits[#, 2][[;;2]] == {1, 0}&] (* Jean-François Alcover, Oct 25 2021 *)
-
PARI
pxnm1(n,p) = { forprime(x=2,n, p1 = x; while(p1>1, if(p1%2==0,p1/=2,p1 = p1*p-1;); if(p1 == 4,break); ); if(p1 == 4,print1(x" ")) ) }
Comments