OFFSET
1,2
COMMENTS
Each number in this sequence is odd. Every term of A045345 also occurs in this sequence.
LINKS
Giovanni Resta, Table of n, a(n) for n = 1..35
EXAMPLE
(prime(1) + prime(2) + ... + prime(23))^2 = (2 + 3 + 5 + ... + 83)^2 = 23*33212.
MATHEMATICA
s = 0; t = {}; Do[s = s + Prime[n]; If[ Mod[s^2, n] == 0, AppendTo[t, n]], {n, 10^8}]; t (* Robert G. Wilson v, Nov 15 2005 *)
PROG
(PARI) {my(k=0, s=0); forprime(p=2, prime(10^8), k++; s+=p; if(s^2%k==0, print1(k, ", ")))} \\ Andrew Howroyd, Jan 02 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Stefan Steinerberger, Nov 14 2005
EXTENSIONS
a(13)-a(18) from Robert G. Wilson v, Nov 15 2005
a(19)-a(25) from Andrew Howroyd, Jan 02 2020
a(26)-a(29) from Giovanni Resta, Jan 03 2020
STATUS
approved