OFFSET
1,2
LINKS
Jens Kruse Andersen, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = (n-1)*prime(n). - Zak Seidov, Aug 15 2010
EXAMPLE
a(9) = 184 because (1) the 9th prime number is 23, (2) there are 8 primes smaller than 23 and (3) 23*8 = 184.
MAPLE
with(numtheory):a:=n->sum(ithprime(n), j=2..n):seq(a(n), n=1..47); # Zerinvary Lajos, Aug 24 2008
MATHEMATICA
Table[(n - 1)Prime[n], {n, 60}] (* Zak Seidov, Aug 15 2010 *)
PROG
(PARI) a(n)=prime(n)*(n-1) \\ Charles R Greathouse IV, Sep 15 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), Apr 25 2006
EXTENSIONS
a(31) corrected by Jens Kruse Andersen, Sep 15 2014
STATUS
approved