OFFSET
1,3
COMMENTS
Total sum of the second differences of the primes (A036263) to 2^n.
LINKS
MATHEMATICA
a[n_] := Prime[2^n+2]-Prime[2^n+1]-1; a/@Range[26]
PROG
(Python)
from sympy import nextprime, prime
def a(n): p = prime(2**n + 1); return nextprime(p) - p - 1
print([a(n) for n in range(1, 25)]) # Michael S. Branicky, Dec 27 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Aug 15 2002
EXTENSIONS
a(42)-a(47) from Michael S. Branicky, Dec 27 2021
a(48)-a(78) from Michael S. Branicky, Dec 30 2021 using A033844
STATUS
approved