OFFSET
1,1
COMMENTS
Conjecture: sequence is defined for all n. First unproved n: 286 Prime(286)=1871, up to date, tested up to k=40959, none 2^k-Prime(286) is prime.
Primo was used for testing large primes.
LINKS
EXAMPLE
Prime(1)=2, 2^2-2 = 2 is prime
Prime(2)=3, 2^3-3 = 5 is prime
...
Prime(68)=337, 2^791-337 is prime.
MATHEMATICA
f[n_] := Block[{p = Prime@ n}, k = Ceiling@ Log2@ p; While[! PrimeQ[2^k - p], k++]; k]; Array[f, 83]
CROSSREFS
KEYWORD
nonn
AUTHOR
Lei Zhou, Jan 20 2005
STATUS
approved