|
|
A033998
|
|
Numbers n such that the sum of the primes <= n is a square.
|
|
4
|
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
2+3+5+7+11+13+17+19+23 = 10^2 is a square, so 23 is in the sequence.
|
|
MATHEMATICA
|
Prime[#]&/@Flatten[Position[Accumulate[Prime[Range[710000]]], _?(IntegerQ[ Sqrt[#]]&)]] (* This program will generate the first 5 terms of the sequence. *) (* Harvey P. Dale, Jun 22 2013 *)
|
|
PROG
|
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|