login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A065573 Numbers k such that the first k quinary digits found in the decimal expansion of Pi form a prime. 0

%I #5 Apr 11 2021 16:12:16

%S 1,4,69,3195

%N Numbers k such that the first k quinary digits found in the decimal expansion of Pi form a prime.

%t p = First[ RealDigits[ Pi, 10, 10^5]]; p = p[[ Select[ Range[10^5], p[[ # ]] == 0 || p[[ # ]] == 1 || p[[ # ]] == 2 || p[[ # ]] == 3 || p[[ # ]] == 4 & ]]]; Do[ If[ PrimeQ[ FromDigits[ Take[p, n], 5]], Print[n]], {n, 1, 5000} ]

%K nonn,base

%O 1,2

%A _Robert G. Wilson v_, Dec 01 2001

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)