%I #13 Sep 08 2022 08:45:33
%S 2,12,100,392,2420,4732,13872,21660,46552,117740,153760,312132,470680,
%T 569492,812912,1314612,2018980,2307020,3357772,4234440,4732152,
%U 6490640,7908572,10455720,14753312,17341700,18756712,21844692,23524380,27172432
%N a(n) = (prime(n)^4 - prime(n)^2)/6.
%H Vincenzo Librandi, <a href="/A138421/b138421.txt">Table of n, a(n) for n = 1..200</a>
%F a(n) = A138402(n)/6. - _R. J. Mathar_, Oct 15 2017
%t a = {}; Do[p = Prime[n]; AppendTo[a, (p^4 - p^2)/6], {n, 1, 50}]; a
%o (Magma) [(NthPrime((n))^4 - NthPrime((n))^2)/6: n in [1..35] ]; // _Vincenzo Librandi_, Jun 17 2011
%o (PARI) forprime(p=2,1e3,print1((p^4-p^2)/6", ")) \\ _Charles R Greathouse IV_, Jul 15 2011
%K nonn,easy
%O 1,1
%A _Artur Jasinski_, Mar 19 2008