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!)
A065574 Numbers k such that the first k decimal digits < 6 of Pi, read as a base-6 number, form a prime. 0
1, 2, 4, 5, 52, 154, 219, 270, 2455 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
The digits of Pi less than 6 begins 3, 1, 4, 1, 5, 2, 5, 3, ..., interpreting increasing prefixes of these digits in base 6, we have 3_6 = 3 is prime (hence 1 is in the sequence), 31_6 = 19 is prime (hence 2 is in the sequence), 314_6 = 118 is not prime, 3141_6 = 709 is prime (hence 4 is in the sequence). - Sean A. Irvine, Sep 06 2023
MATHEMATICA
p = First[ RealDigits[ Pi, 10, 10^5]];
p = p[[ Select[ Range[10^5], p[[#]] <= 5 & ]]];
Do[ If[ PrimeQ[ FromDigits[ Take[p, n], 6]], Print[n]], {n, 3000} ]
CROSSREFS
Sequence in context: A210418 A167454 A056683 * A247963 A105288 A242915
KEYWORD
nonn,base,more,less
AUTHOR
Robert G. Wilson v, Dec 01 2001
EXTENSIONS
Data corrected by Sean A. Irvine, Sep 06 2023
STATUS
approved

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 19 16:52 EDT 2024. Contains 371794 sequences. (Running on oeis4.)