|
|
A297423
|
|
Numbers k such that (4*10^(2k) - 2*(10^k) + 1)/3 is prime.
|
|
0
|
|
|
1, 2, 97, 118, 223, 318, 350, 1369, 1590, 2658, 33295
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Numbers of this form divide 8*(10^3k)+1.
|
|
LINKS
|
|
|
EXAMPLE
|
127 and 13267 are prime, while 1332667=7*61*3121, 133326667=19*937*7489, and 13333333266666667=6247609*2134149763.
|
|
MATHEMATICA
|
Select[Range[1500], PrimeQ[(4 (10^(2 #)) - 2 (10^#) + 1)/3] &] (* Michael De Vlieger, Dec 30 2017 *)
|
|
PROG
|
(PARI) isok(k) = isprime((4*10^(2*k) - 2*(10^k) + 1)/3); \\ Michel Marcus, Dec 30 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|