login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A248804 Prime sieve of e. 6
18, 8284, 90452, 60287, 526624, 24, 36999, 669, 6, 24076630, 5945, 382, 85, 6, 427, 9, 3, 0, 2, 7, 66, 0, 57, 429526059, 0, 813, 2862, 4, 763, 5, 9525, 90, 573, 4, 21540, 934884, 46066808, 6847, 85, 4234544, 53, 77, 9, 551702, 8386062, 8, 7520, 38265, 760, 7 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Manfred Scheucher, Table of n, a(n) for n = 1..441

Wikipedia, e (mathematical constant).

Manfred Scheucher, Sage Script (Note: should also run in pure python with a few modifications)

PROG

(Python)

from decimal import *

getcontext().prec = 300

def primes(n):

....""" Returns  a list of primes < n """

....sieve = [True] * n

....for i in xrange(3, int(n**0.5)+1, 2):

........if sieve[i]:

............sieve[i*i::2*i]=[False]*((n-i*i-1)/(2*i)+1)

....return [2] + [i for i in xrange(3, n, 2) if sieve[i]]

b = primes(429526060)

x = (Decimal(1).exp())

y = str(x)

y = y.replace(".", "")

for x in b:

....if str(x) in y:

........y = y.replace(str(x), " ", 1)#replace first occurrence only

while "  " in y:

....y = y.replace("  ", " ")#replace long chains of spaces with a single space

z = y.split(" ")#split terms into a list

z = filter(None, z)#remove null terms

f = map(int, z)#convert to integers

print(f[0:-1])

# David Consiglio, Jr., Jan 03 2015

CROSSREFS

Cf. A001113, A245770 (Prime sieve of Pi), A248831 (Prime sieve of sqrt(2)).

Sequence in context: A159405 A265450 A213402 * A060617 A222202 A201986

Adjacent sequences:  A248801 A248802 A248803 * A248805 A248806 A248807

KEYWORD

nonn,base

AUTHOR

Jared Kish, Oct 14 2014

EXTENSIONS

More terms from David Consiglio, Jr., Jan 03 2015

More terms from Manfred Scheucher, May 25 2015

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 23 09:28 EDT 2019. Contains 328345 sequences. (Running on oeis4.)