%I #11 Jan 17 2019 13:44:10
%S 2,3,4,6,9,25,162,258,457,813,1079,1266,2397,4075,15688,18663,21079,
%T 21851,40627,54960
%N Numbers k such that (2*10^k - 179)/3 is prime.
%C For k > 1, numbers such that k-2 occurrences of the digit 6 followed by the digits 07 is prime (see Example section).
%C a(21) > 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/primedifficulty.txt">Search for 6w07</a>
%e 3 is in this sequence because (2*10^3 - 179)/3 = 607 is prime.
%e Initial terms and primes associated:
%e a(1) = 2, 7;
%e a(2) = 3, 607;
%e a(3) = 4, 6607;
%e a(4) = 6, 666607;
%e a(5) = 9, 666666607; etc.
%t Select[Range[2, 100000], PrimeQ[(2*10^# - 179)/3] &]
%o (PARI) isok(k) = isprime((2*10^k - 179)/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
|