Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A073885
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A073885 a(1)=1, a(n) = smallest positive integer not included earlier such that the n-th partial sum is a prime iff n is a prime. +0
3
1, 2, 4, 3, 7, 5, 9, 8, 6, 10, 12, 11, 19, 13, 14, 16, 17, 15, 21, 20, 18, 22, 24, 23, 25, 26, 27, 28, 33, 29, 31, 30, 32, 34, 35, 36, 43, 37, 38, 40, 39, 41, 49, 42, 45, 44, 67, 46, 47, 48, 50, 51, 54, 53, 52, 56, 57, 55, 63, 58, 60, 59, 61, 64, 62, 65, 69, 68, 66, 70, 72, 71 (list; graph; listen)
OFFSET

1,2

MATHEMATICA

For[n=1; s={}; sum=0, n<=100, n++, For[v=1, MemberQ[s, v]||Xor[PrimeQ[n], PrimeQ[sum+v]], v++, Null]; sum+=v; AppendTo[s, a[n]=v]]; a/@Range[100]

CROSSREFS

Cf. A073886.

Sequence in context: A064357 A120619 A084385 this_sequence A120234 A103865 A065579

Adjacent sequences: A073882 A073883 A073884 this_sequence A073886 A073887 A073888

KEYWORD

nonn

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Aug 17 2002

EXTENSIONS

Edited by Dean Hickerson (dean.hickerson(AT)yahoo.com), Oct 22 2002

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 December 17 23:40 EST 2009. Contains 171025 sequences.


AT&T Labs Research