OFFSET
1,1
LINKS
Manfred Scheucher, Table of n, a(n) for n = 1..441
Manfred Scheucher, Sage Script (Note: should also run in pure python with a few modifications).
Wikipedia, e (mathematical constant).
PROG
(Python)
from decimal import *
getcontext().prec = 300
def primes(n):
""" Returns a list of primes < n """
sieve = [True] * n
for i in range(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 range(3, n, 2) if sieve[i]]
b = primes(429526060)
x = (Decimal(1).exp())
y = str(x).replace(".", "")
for x in b:
y = y.replace(str(x), " ", 1) #replace first occurrence only
f = [int(x) for x in y.split()[:-1]]
print(f)
# David Consiglio, Jr., Jan 03 2015
CROSSREFS
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