OFFSET
0,3
COMMENTS
This sequence shows 2^n is neither a lower bound nor an upper bound for the primorials.
FORMULA
MAPLE
restart;
with(NumberTheory);
a := n -> 2^n-product(ithprime(i), i = 1 .. PrimeCounting(n)):
0, seq(a(n), n = 1 .. 15); # Stefano Spezia, Nov 05 2018
MATHEMATICA
Table[2^n - Times@@Select[Range[n], PrimeQ], {n, 0, 31}]
PROG
(PARI) a(n) = 2^n - prod(k=1, primepi(n), prime(k)); \\ Michel Marcus, Nov 05 2018
CROSSREFS
KEYWORD
sign
AUTHOR
Alonso del Arte, Sep 30 2018
STATUS
approved