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.

Showing 1-2 of 2 results.

A064118 Numbers k such that the first k digits of e form a prime.

Original entry on oeis.org

1, 3, 7, 85, 1781, 2780, 112280, 155025
Offset: 1

Views

Author

Shyam Sunder Gupta, Sep 09 2001

Keywords

Comments

The primes are given in A007512. Sequences A065815, A119344, A136583, A210706,... are analogs for gamma, sqrt(3), sqrt(10), 3^(1/3), .... The MathWorld page about "Constant Primes" lists further examples. - M. F. Hasler, Aug 31 2013

Examples

			a(2)=3 because the 3-digit number 271 is prime.
		

References

  • C. A. Pickover, The Mathematics of Oz, "2, 271, 2718281", Chapter 95, Camb.Univ.Press, UK 2002.

Crossrefs

Cf. A001113.
Cf. A047658.

Programs

  • Mathematica
    Do[If[PrimeQ[FromDigits[RealDigits[N[E, n + 10], 10, n][[1]]]], Print[n]], {n, 1, 2300}]

Extensions

One more term from Robert G. Wilson v, Sep 28 2001
a(6) from Eric W. Weisstein, Jan 17 2005
a(7) from Eric W. Weisstein, Jul 03 2009
a(8) from Eric W. Weisstein, Oct 11 2010

A210704 Primes formed by initial digits of 3^(1/3) = A002581, i.e., of the form floor[3^(1/3)*10^k].

Original entry on oeis.org

144224957030740838232163, 144224957030740838232163831078010958839186925349935057754641619454168759682999733
Offset: 1

Views

Author

M. F. Hasler, Aug 31 2013

Keywords

Comments

Inspired by prime curios about 4957 (cf. LINKS), one of which honors the late Bruce Murray, 30.11.1931 - 29.8.2013.
See A210706 for the k-values. The keyword "less" for this records means that the next term (2488 digits) cannot be added / displayed here, and instead of listing further primes here, the k-values should be recorded in A210706.

Crossrefs

Cf. A005042 (analog for Pi), A007512 (analog for e), A115453 (analog for sqrt(2)), A119343 (analog for sqrt(3)), A072952 (analog for gamma).

Programs

  • Mathematica
    With[{cr3=RealDigits[CubeRoot[3],10,100][[1]]},Select[Table[FromDigits[Take[cr3,n]],{n,100}],PrimeQ]] (* Harvey P. Dale, Mar 30 2024 *)
  • PARI
    (c=sqrtn(3,3),v=1/*set to 0 for indices instead of values*/)->for(k=0,precision(c),ispseudoprime(p=c\.1^k)&&print1([k,p][1+v]","))

Formula

a(n) = floor[A002581 * 10^A210706(n)], where A002581 is taken as a constant.
Showing 1-2 of 2 results.