cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A064119 Numbers k such that the first k digits of the Golden Ratio form a prime.

Original entry on oeis.org

7, 13, 255, 280, 97241
Offset: 1

Views

Author

Shyam Sunder Gupta, Sep 09 2001

Keywords

Examples

			a(1)=7 because the 7-digit number 1618033 is prime.
		

Crossrefs

Cf. A064117.

Programs

  • Mathematica
    Do[If[PrimeQ[ FromDigits[RealDigits[N[GoldenRatio, n + 10], 10, n][[1]]]], Print[n]], {n, 1, 3000}]
    With[{gr=RealDigits[GoldenRatio,10,100000][[1]]},Select[Range[ 100000], PrimeQ[ FromDigits[Take[gr,#]]]&]] (* Harvey P. Dale, Jul 24 2016 *)

Extensions

a(5) = 97241 from Eric W. Weisstein, Jun 04 2009