%I #15 May 03 2024 18:55:02
%S 3,17,18,30,78,98,371,947,1085,1560,1607,2145,4310,4637,16674,17148,
%T 25209,27929,33491,74189,124809,142446
%N Numbers k such that (61*10^k - 1)/3 is prime.
%C Numbers k such that the digits 20 followed by k occurrences of the digit 3 is prime (see Example section).
%C a(23) > 2*10^5.
%H Makoto Kamada, <a href="https://stdkmd.net/nrr">Factorization of near-repdigit-related numbers</a>.
%H Makoto Kamada, <a href="https://stdkmd.net/nrr/prime/prime_difficulty.txt">Search for 203w</a>.
%e 3 is in this sequence because (61*10^3 - 1)/3 = 20333 is prime.
%e Initial terms and associated primes:
%e a(1) = 3, 20333;
%e a(2) = 17, 2033333333333333333;
%e a(3) = 18, 20333333333333333333;
%e a(4) = 30, 20333333333333333333333333333333; etc.
%t Select[Range[0, 100000], PrimeQ[(61*10^# - 1)/3] &]
%o (PARI) isok(k) = isprime((61*10^k - 1)/3); \\ _Michel Marcus_, Nov 22 2017
%Y Cf. A056654, A268448, A269303, A270339, A270613, A270831, A270890, A270929, A271269.
%K nonn,more,hard
%O 1,1
%A _Robert Price_, Nov 21 2017
%E a(21)-a(22) from _Robert Price_, Jan 05 2020