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.

Showing 1-1 of 1 results.

A036949 Smallest n-digit prime containing only the digits 7 and 8, or 0 if no such prime exists.

Original entry on oeis.org

7, 0, 787, 7877, 78787, 777787, 7778777, 77778887, 777788887, 7777778887, 77777778887, 777777777877, 7777777787777, 77777777778787, 777777777777787, 7777777778788777, 77777777777778887, 777777777787878887
Offset: 1

Views

Author

Patrick De Geest, Jan 04 1999

Keywords

Crossrefs

Programs

  • Mathematica
    Table[SelectFirst[FromDigits/@Tuples[{7,8},n],PrimeQ],{n,18}]/.Missing[ "NotFound"]->0 (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Oct 07 2018 *)
Showing 1-1 of 1 results.