OFFSET
1,2
COMMENTS
Obviously, a(n) is always an even number.
All a(n) are divisible by 6. - Robert Israel, Oct 16 2020
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
For n = 2, a(2) = (2 + 3)^3 - (2^3 + 3^3) = 90.
MAPLE
A263170 := proc(n)
su := add(ithprime(i), i=1..n) ;
su3 := add(ithprime(i)^3, i=1..n) ;
su^3-su3 ;
end proc: # R. J. Mathar, Oct 21 2015
MATHEMATICA
Table[Sum[Prime@ k, {k, n}]^3 - Sum[Prime[k]^3, {k, n}], {n, 30}] (* Michael De Vlieger, Oct 19 2015 *)
PROG
(PARI) a(n) = sum(k=1, n, prime(k))^3 - sum(k=1, n, prime(k)^3);
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Altug Alkan, Oct 11 2015
STATUS
approved