Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A096071
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A096071 Primes arising as a partial sum of A096070. +0
2
3, 11, 23, 41, 67, 83, 109, 137, 173, 223, 269, 311, 359, 409, 467, 541, 607, 677, 751, 829, 907, 991, 1087, 1181, 1277, 1381, 1487, 1601, 1721, 1847, 1973, 2099, 2237, 2371, 2521, 2659, 2801, 2953, 3109, 3257, 3433, 3593, 3767, 3947, 4111, 4297, 4481 (list; graph; listen)
OFFSET

1,1

COMMENT

The n-th partial sum of A096070 is prime iff n is even.

EXAMPLE

The sixth partial sum of A096070 is 1+2+3+5+4+8 = 23.

PROGRAM

(PARI) {m=94; s=0; v=Set([]); for(n=1, m, k=1; while(setsearch(v, k)>0||isprime(s+k)!=(n%2==0), k++); s=s+k; if(n%2==0, print1(s, ", ")); v=setunion(v, Set(k)))}

CROSSREFS

Cf. A096070.

Sequence in context: A132209 A086497 A121509 this_sequence A078723 A141187 A107138

Adjacent sequences: A096068 A096069 A096070 this_sequence A096072 A096073 A096074

KEYWORD

nonn

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Jun 20 2004

EXTENSIONS

Edited, corrected and extended by Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), Jun 21 2004

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified July 26 23:19 EDT 2008. Contains 142293 sequences.


AT&T Labs Research