OFFSET
1,2
COMMENTS
For k > 1, numbers k such that the digit 2 followed by k-2 occurrences of the digit 0 followed by the digits 89 is prime (see Example section).
a(32) > 10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 20w89.
EXAMPLE
3 is in this sequence because 2*10^3 + 89 = 2089 is prime.
Initial terms and associated primes:
a(1) = 1, 109;
a(2) = 3, 2089;
a(3) = 4, 20089;
a(4) = 8, 200000089;
a(5) = 9, 2000000089, etc.
MATHEMATICA
Select[Range[0, 100000], PrimeQ[2*10^# + 89] &]
PROG
(Magma) [n: n in [1..500] | IsPrime(2*10^n+89)]; // Vincenzo Librandi, Jul 17 2016
(PARI) is(n)=ispseudoprime(2*10^n+89) \\ Charles R Greathouse IV, Jun 13 2017
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Robert Price, Jul 16 2016
STATUS
approved