OFFSET
1,1
COMMENTS
For k > 1, numbers k such that k-2 occurrences of the digit 5 followed by the digits 03 is prime (see Example section).
a(25) > 2*10^5.
LINKS
Makoto Kamada, Factorization of near-repdigit-related numbers.
Makoto Kamada, Search for 5w03.
EXAMPLE
3 is in this sequence because (5*10^3 - 473)/9 = 503 is prime.
Initial terms and associated primes:
a(1) = 2, 3;
a(2) = 3, 503;
a(3) = 4, 5503;
a(4) = 9, 555555503;
a(5) = 10, 5555555503; etc.
MATHEMATICA
Select[Range[2, 100000], PrimeQ[(5*10^# - 473)/9] &]
PROG
(PARI) isok(k) = isprime((5*10^k - 473)/9); \\ Michel Marcus, Dec 01 2017
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Robert Price, Nov 30 2017
EXTENSIONS
a(24) from Robert Price, Jan 21 2018
STATUS
approved