OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..200
FORMULA
a(n) = A138402(n)/3. - R. J. Mathar, Oct 15 2017
MATHEMATICA
a = {}; Do[p = Prime[n]; AppendTo[a, (p^4 - p^2)/3], {n, 1, 50}]; a
(#^4-#^2)/3&/@Prime[Range[30]] (* Harvey P. Dale, Jun 30 2017 *)
PROG
(Magma) [(NthPrime((n))^4 - NthPrime((n))^2)/3: n in [1..30] ]; // Vincenzo Librandi, Jun 17 2011
(PARI) forprime(p=2, 1e3, print1((p^4-p^2)/3", ")) \\ Charles R Greathouse IV, Jul 15 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Artur Jasinski, Mar 19 2008
STATUS
approved