Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A068066
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A068066 The sum or half the sum of n consecutive primes starting at a(n) is prime. +0
1
2, 2, 5, 2, 5, 2, 17, 83, 3, 3, 5, 2, 29, 2, 3, 11, 3, 3, 11, 23, 7, 5, 7, 11, 5, 3, 7, 3, 13, 3, 13, 5, 7, 17, 5, 3, 5, 73, 13, 5, 7, 5, 7, 5, 7, 29, 7, 53, 11, 29, 17, 31, 3, 23, 3, 47, 97, 5, 29, 2, 3, 37, 13, 2, 3, 17, 19, 5, 19, 71, 3, 47, 5, 19, 3, 59, 23, 89, 7, 19, 11, 37, 53, 3 (list; graph; listen)
OFFSET

1,1

COMMENT

This eliminates the impossibles out of A007610 and the 'or' in the title is the exclusive or.

EXAMPLE

a(3) = 5 because 5+7+11 = prime 23 and a(10) = 3 because 3+5+7+11+13+17+19+23+29+31 = 158 and half that or 79 is a prime.

MATHEMATICA

Do[k = n; a = Table[Prime[i], {i, 1, n} ]; While[ !PrimeQ[Plus @@ a] && !PrimeQ[Plus @@ a/2], k++; a = Drop[a, 1]; a = Append[a, Prime[k]]]; Print[a[[1]]], {n, 1, 100} ]

CROSSREFS

Cf. A007610.

Sequence in context: A039931 A128645 A007610 this_sequence A101910 A093660 A093663

Adjacent sequences: A068063 A068064 A068065 this_sequence A068067 A068068 A068069

KEYWORD

nonn

AUTHOR

Robert G. Wilson v (rgwv(AT)rgwv.com), Feb 16 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 July 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research