OFFSET
1,2
COMMENTS
Proposed by Leroy Quet, Feb 13 2004; computed by several people including Fred W. Helenius, Feb 14 2004.
Comment from Fred Helenius: Every positive integer up to 82 appears in the first 100 terms; everything up to 922 appears in the first 1000. Apart from a(1), odd-indexed terms must be even; even-indexed terms are occasionally even as well, so the odd values tend to arrive late.
PROG
(PARI) v=[1]; n=1; while(n<100, s=n*(#v+1)+sum(i=1, #v, i*v[i]); if(isprime(s)&&!vecsearch(vecsort(v), n), v=concat(v, n); n=0); n++); v \\ Derek Orr, Jun 03 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Mar 13 2004
STATUS
approved