OFFSET
1,1
LINKS
Abhiram R Devesh, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1)=7; primes less than or equal to 7: [2, 3, 5, 7]; cubes of prime gaps: [1, 8, 8]; sum of squares of prime gaps: 17.
a(2)=13; primes less than or equal to 13: [2, 3, 5, 7, 11, 13]; cubes of prime gaps: [1, 8, 8, 64, 8]; sum of squares of prime gaps: 89.
PROG
(Python)
from sympy import nextprime, isprime
p=2
s=0
while 0 < p < 10000:
np=nextprime(p)
if isprime(s):
print(p)
d=np-p
s+=(d*d*d)
p=np
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Abhiram R Devesh, Nov 22 2014
STATUS
approved