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!)
A065989 The first n ternary digits of Pi expressed in decimal forms a prime. 0
2, 10, 14, 83, 669, 720, 921, 2944, 4567 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
No further terms up to 10000. - Harvey P. Dale, Oct 14 2018
LINKS
EXAMPLE
The first 10 ternary digits of Pi (A004602) are 1001021101 = 20611 in decimal, which is a prime.
MATHEMATICA
Do[ If[ PrimeQ[ FromDigits[ First[ RealDigits[Pi, 2, n]], 2]], Print[n]], {n, 1, 5000} ]
Module[{nn=4600, pd}, pd=RealDigits[Pi, 3, nn][[1]]; Position[Table[ FromDigits[ Take[ pd, n], 3], {n, nn}], _?(PrimeQ[#]&)]]//Flatten (* Harvey P. Dale, Oct 14 2018 *)
CROSSREFS
Cf. A004602.
Sequence in context: A047043 A244268 A233454 * A299378 A031222 A272041
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Dec 10 2001
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 24 13:41 EDT 2024. Contains 371957 sequences. (Running on oeis4.)