The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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. 2
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; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
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: A120619 A346298 A084385 * A256283 A257465 A120234
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Aug 17 2002
EXTENSIONS
Edited by Dean Hickerson, Oct 22 2002
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 15 17:39 EDT 2024. Contains 372548 sequences. (Running on oeis4.)