A065832 Numbers k such that the first k binary digits found in the base-10 expansion of Pi form a prime (when the decimal point is ignored).
2, 4, 10, 24, 29, 34, 43, 62, 76, 351, 778, 2736, 4992, 7517, 22044, 40390, 204505
Offset: 1
Examples
The first a(3)=10 binary digits of Pi are 1101110001_2 which is prime 881_10.
Crossrefs
Programs
-
Mathematica
p = First[ RealDigits[ Pi, 10, 10^5]]; p = p[[ Select[ Range[10^5], p[[ # ]] == 0 || p[[ # ]] == 1 & ]]]; Do[ If[ PrimeQ[ FromDigits[ Take[p, n], 2]], Print[n]], {n, 1, Length[p] } ]
Extensions
More terms from Robert G. Wilson v, Nov 30 2001
a(15)-a(16) from Chai Wah Wu, Apr 06 2020
a(17) from Michael S. Branicky, Sep 25 2024
Comments