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.

A024779 Every suffix is prime and contains no 0 digits in base 4 (written in base 4).

Original entry on oeis.org

2, 3, 13, 23, 113, 223, 323, 1223, 2113, 3323, 21223, 32113, 33323, 233323, 321223, 333323
Offset: 1

Views

Author

Keywords

Crossrefs

Programs

  • Python
    from sympy import isprime
    def afull():
        prime_strings, alst = list("23"), []
        while len(prime_strings) > 0:
            alst.extend(sorted(int(p) for p in prime_strings))
            candidates = set(d+p for p in prime_strings for d in "123")
            prime_strings = [c for c in candidates if isprime(int(c, 4))]
        return alst
    print(afull()) # Michael S. Branicky, Apr 27 2022