A270427 Numbers k such that k*floor(2^k/k) + 1 is prime.
1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 13, 14, 16, 17, 19, 22, 31, 39, 61, 76, 89, 94, 102, 107, 122, 127, 130, 338, 521, 607, 639, 694, 1279, 1352, 1593, 1983, 2061, 2203, 2281, 2319, 2410, 2646, 3217, 4253, 4423, 6345, 7707, 9689, 9941, 11213, 12819, 13175, 14114, 14415, 15293, 19937, 21701, 22839, 23209, 32925, 44497
Offset: 1
Keywords
Programs
-
Mathematica
Select[Range[7000], PrimeQ[#*Floor[2^#/#] + 1] &] (* G. C. Greubel, Oct 09 2018 *)
-
PARI
for(n=1, 1000, if(isprime(n * floor(2^n/n) + 1), print1(n,", "))) \\ Amiram Eldar, Oct 09 2018
Extensions
Three missing terms supplemented by Amiram Eldar, Oct 09 2018
a(47)-a(49) added by G. C. Greubel, Oct 09 2018
a(50)-a(61) added by Amiram Eldar, Oct 09 2018
Comments