|
|
A110979
|
|
Squares equal to the sum of the first k primes minus 1.
|
|
2
|
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
No more terms < 7472966967498, sum of first 10^6 primes minus 1. - Ray Chandler, Oct 07 2005
|
|
LINKS
|
|
|
MATHEMATICA
|
Select[Accumulate[Prime[Range[1000]]]-1, IntegerQ[Sqrt[#]]&] (* Harvey P. Dale, Jun 09 2022 *)
|
|
PROG
|
(PARI) lista(nn) = my(s=-1); forprime(p=2, nn, s+=p; if(issquare(s), print1(s, ", "))) \\ Jinyuan Wang, Aug 10 2023
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,hard,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|