OFFSET
1,1
EXAMPLE
a(3) = prime(3)# + prime(3) = 2 * 3 * 5 + 5 = 35.
PROG
(PARI) a(n) = prime(n) + prod(k=1, n, prime(k)); \\ Michel Marcus, Feb 28 2022
(Python)
from sympy import primorial, prime
def a(n): return primorial(n) + prime(n)
for n in range(1, 50):
print(a(n), end=", ") # Javier Rivera Romeu, Mar 01 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Ryan Bresler, Feb 27 2022
STATUS
approved