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.

User: Jared Kish

Jared Kish's wiki page.

Jared Kish has authored 3 sequences.

A248831 Prime sieve of the square root of 2.

Original entry on oeis.org

1, 4, 1, 6, 309, 6, 8078, 1875, 69480, 66, 7, 32, 8462, 388, 87, 2764, 27350, 846, 12, 24, 6055850, 4, 999358, 41322266, 27505, 9995050, 527820605, 470, 5, 716059, 453459686, 285, 86408, 5, 87, 4508, 627995, 8968, 396546, 808, 640620, 5, 50, 502, 599, 2
Offset: 1

Author

Jared Kish, Oct 15 2014

Keywords

Comments

Algorithm: see A245770 (prime sieve of Pi).

Crossrefs

Cf. A002193 (square root of 2), A245770 (prime sieve of Pi), A248804 (prime sieve of e).

Programs

  • Python
    def sqroot(a, digits):
        a = a * (10**(2*digits))
        x_prev = 0
        x_next = 1 * (10**digits)
        while x_prev != x_next:
            x_prev = x_next
            x_next = (x_prev + (a // x_prev)) >> 1
        return x_next
    def 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]]
    a = sqroot(2,300)#300 digits is arbitrary - lengthen for more digits
    b = primes(10000000)#make sure to scan primes up to longest term in sequence
    y = str(a)
    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 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)
    # David Consiglio, Jr., Jan 03 2015

Extensions

More terms from David Consiglio, Jr., Dec 02 2014, Jan 03 2015
More terms from Manfred Scheucher, May 25 2015

A248804 Prime sieve of e.

Original entry on oeis.org

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
Offset: 1

Author

Jared Kish, Oct 14 2014

Keywords

Crossrefs

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

Programs

  • 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

Extensions

More terms from David Consiglio, Jr., Jan 03 2015
More terms from Manfred Scheucher, May 25 2015

A248803 Decimal expansion of the square root of 101.

Original entry on oeis.org

1, 0, 0, 4, 9, 8, 7, 5, 6, 2, 1, 1, 2, 0, 8, 9, 0, 2, 7, 0, 2, 1, 9, 2, 6, 4, 9, 1, 2, 7, 5, 9, 5, 7, 6, 1, 8, 6, 9, 4, 5, 0, 2, 3, 4, 7, 0, 0, 2, 6, 3, 7, 7, 2, 9, 0, 5, 7, 2, 8, 2, 8, 2, 9, 7, 3, 2, 8, 4, 9, 1, 2, 3, 1, 5, 5, 1, 9, 7, 0, 3, 8, 1, 2, 3, 6, 1, 7, 7, 6, 9, 2, 4, 5, 3, 9, 5, 2, 3, 5, 2, 3, 6, 6, 2, 9, 9, 5, 0, 3, 2, 6, 5, 2, 6, 1, 3, 2, 3, 1, 8, 8, 1, 5, 9, 3, 5, 8, 5, 7, 9, 7, 8, 6, 9
Offset: 2

Author

Jared Kish, Oct 14 2014

Keywords

Comments

Differs from A188658 only in one digit.

Examples

			10.04987562112089027021926491275957618694502347...
		

Crossrefs

Cf. A188658.

Programs

Extensions

a(131) corrected by Georg Fischer, Jul 15 2021