OFFSET
1,5
COMMENTS
LINKS
Michel Lagneau, Table of n, a(n) for n = 1..10000
EXAMPLE
a(5) = 3 because the sum of the 5 primes 2 + 3 + 5 + 7 + 11 = 28, and 28 - 25 = 3.
MAPLE
with(numtheory): for n from 1 to 100 do:s:=sum(‘ithprime(k)’, ’k’=1..n):x:=s -floor(sqrt(s-1))^2: printf(`%d, `, x):od:
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, May 20 2012
STATUS
approved