A244917 Smallest prime p such that p - 2^e is also prime in exactly n cases for nonnegative integers e.
2, 3, 7, 19, 139, 829, 3331, 32941, 176417, 854929, 2233531, 12699571, 47924959, 763597201, 5775760189
Offset: 0
Examples
a(3) = 19 since 19-2^1=17, 19-2^3=11 & 19-2^4=3 and there exists no prime less than 19 which exhibits this characteristic.
Crossrefs
Cf. A078686.
Programs
-
Mathematica
f[n_] := Length@ Table[q = p - 2^exp; If[ PrimeQ@ q, {q}, Sequence @@ {}], {exp, 0, Floor@ Log2@ p}]; t = Table[0, {20}]; p = 2; While[p < 100000001, a = f@ p; If[ t[[a]] == 0, t[[a]] = p; Print[{a, p}]]; p = NextPrime@ p]; t
Extensions
a(14) from Robert G. Wilson v, Sep 12 2014
Comments