OFFSET
3,1
LINKS
Robert Israel, Table of n, a(n) for n = 3..10000
FORMULA
MAPLE
seq(ithprime(i)*(ithprime(i-1)-1)/2, i=3..50); # Robert Israel, Jan 02 2016
MATHEMATICA
Rest[(Last[#](First[#]-1))/2&/@Partition[Prime[Range[50]], 2, 1]] (* Harvey P. Dale, Sep 15 2011 *)
PROG
(Magma) [NthPrime(n)*(NthPrime(n-1)-1)/2: n in [3..50]]; // Vincenzo Librandi, Jan 03 2016
(PARI) a(n) = prime(n)*(prime(n-1)-1)/2; \\ Michel Marcus, Jan 03 2016
(Sage) [nth_prime(n)*(nth_prime(n-1)-1)/2 for n in (3..50)] # G. C. Greubel, Jun 12 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved