|
|
A294921
|
|
Numbers k such that (5*10^k + 97)/3 is prime.
|
|
0
|
|
|
2, 3, 4, 38, 46, 76, 82, 166, 180, 236, 909, 1668, 1884, 2042, 4602, 9830, 21939, 23956
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
For k > 1, numbers such that the digit 1 followed by k-2 occurrences of the digit 6 followed by the digits 99 is prime (see Example section).
a(19) > 2*10^5.
|
|
LINKS
|
|
|
EXAMPLE
|
2 is in this sequence because (5*10^2 + 97)/3 = 199 is prime.
Initial terms and primes associated:
a(1) = 2, 199;
a(2) = 3, 1699;
a(3) = 4, 16699;
a(4) = 38, 166666666666666666666666666666666666699;
a(5) = 46, 16666666666666666666666666666666666666666666699; etc.
|
|
MATHEMATICA
|
Select[Range[0, 100000], PrimeQ[(5*10^# + 97)/3] &]
Select[Range[24000], PrimeQ[100*FromDigits[PadRight[{1}, #, 6]]+99]&]+1 (* Harvey P. Dale, Dec 12 2017 *)
|
|
PROG
|
(PARI) isok(k) = isprime((5*10^k + 97)/3); \\ Michel Marcus, Nov 15 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,more,hard
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|