OFFSET
1,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
MAPLE
with(numtheory):
a:= n-> ithprime(n+1)*n-ithprime(n)*(n-1):
seq(a(n), n=1..60); # Alois P. Heinz, Sep 15 2014
PROG
(PARI) a(n)=my(p=prime(n++)); p+n*(nextprime(p+1)-p) \\ Charles R Greathouse IV, Sep 15 2014
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Odimar Fabeny, Sep 15 2014
EXTENSIONS
More terms from Alois P. Heinz, Sep 15 2014
STATUS
approved