login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A033997 Numbers n such that sum of first n primes is a square. 3
9, 2474, 6694, 7785, 709838, 126789311423 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

LINKS

G. L. Honaker Jr. and C. Caldwell, Prime Curios!: 9

C. Riveras, PrimePuzzles.Net, Problem 9: Sum of first k primes is perfect square

FORMULA

a(n) = PrimePi(A033998(n)).

EXAMPLE

Sum of first 9 primes is 2+3+5+7+11+13+17+19+23 = 100, which is square, so 9 is in the sequence.

MATHEMATICA

p = 2; s = 0; lst = {}; While[p < 10^7, s = s + p; If[ IntegerQ@ Sqrt@ s, AppendTo[lst, PrimePi@ p]; Print@ lst]; p = NextPrime@ p] (* Zak Seidov, Apr 11 2011 *)

CROSSREFS

Cf. A000040, A033998, A061888, A061890 (associated squares).

Sequence in context: A013827 A058428 A069704 * A068729 A159775 A203744

Adjacent sequences:  A033994 A033995 A033996 * A033998 A033999 A034000

KEYWORD

nonn

AUTHOR

Calculated by Jud McCranie (JudMcCranie(AT)ugaalum.uga.edu)

EXTENSIONS

126789311423 from Giovanni Resta (g.resta(AT)iit.cnr.it), May 27 2003

Edited by Ray Chandler (rayjchandler(AT)sbcglobal.net), Mar 20 2007

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 17 21:13 EST 2012. Contains 206085 sequences.