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.

A365598 Near-repdigit primes with at least two 9's as the repeated digit, and ending in a distinct digit.

Original entry on oeis.org

991, 997, 99991, 9999991, 99999999999999997, 999999999999999999999999999999991, 999999999999999999999999999999999999999999991
Offset: 1

Views

Author

Robert Price, Sep 10 2023

Keywords

Comments

The usual definition of near-repdigit prime allows the distinct digit to be in any position, see A105975 for that (super) sequence.

Examples

			99991 is a term because all digits are equal to 9 except the last one.
		

Crossrefs

Programs

  • Maple
    R:= NULL: count:= 0:
    for n from 3 to 999 do
      for d in [9,3] do
        if isprime(10^n - d) then
          R:= R, 10^n-d; count:= count+1;
        fi
    od od:
    R;

Extensions

Definition corrected by M. F. Hasler, Jun 20 2025