Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A137443
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A137443 First n-digit prime in consecutive digits of e. +0
1
7, 71, 281, 4523, 74713, 904523, 6028747, 72407663, 360287471, 7427466391, 75724709369, 749669676277, 8284590452353, 99959574966967, 724709369995957, 2470936999595749, 28459045235360287, 571382178525166427 (list; graph; listen)
OFFSET

1,1

COMMENT

If the "2" at the beginning of e is included, the only values for n <= 1000 that change are a(1) = 2, a(3) = 271, and a(85) = 2718281828459045235360287471352662497757247093699959574966967627724076630353547594571.

LINKS

Dan Drake, Table of n, a(n) for n = 1..1000

Pegg, E. Jr. and Weisstein, E. W. Mathematica's Google Aptitude. MathWorld Headline news, Oct 13, 2004.

EXAMPLE

7427466391 is the first 10-digit prime found in consecutive digits of e, so a(10) = 7427466391.

PROGRAM

Sage (http://sagemath.org, replace leading dots by spaces):

def a(digits):

..bits = 0

..pos = 0

..while True:

....bits += (digits * 4) + 50

....decimals = RealField(bits, rnd='RNDZ')(exp(1)).frac().str()[2:]

....for s in range(pos, len(decimals) - digits + 1):

......if decimals[s] != '0':

........i = Integer(decimals[s:s+digits])

........if i.is_prime():

..........return i

....pos = len(decimals) - digits + 1

CROSSREFS

Cf. A095926.

Sequence in context: A142928 A069634 A069619 this_sequence A100465 A107601 A069591

Adjacent sequences: A137440 A137441 A137442 this_sequence A137444 A137445 A137446

KEYWORD

base,nonn

AUTHOR

Dan Drake (ddrake(AT)member.ams.org), Apr 18 2008

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified September 7 23:08 EDT 2008. Contains 143486 sequences.


AT&T Labs Research