login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A366976
Numbers that cannot be written as sum of two or more consecutive nonprimes.
1
1, 2, 3, 4, 6, 7, 8, 9, 12, 13, 15, 16, 20, 21, 24, 25, 30, 32, 35, 40, 42, 44, 47, 48, 52, 56, 61, 66, 70, 72, 73, 80, 88, 93, 96, 98, 100, 107, 110, 119, 120, 140, 141, 144, 167, 174, 179, 186, 190, 196, 204, 205, 234, 236, 252, 253, 260, 275, 290, 292, 299, 303, 310, 312, 313
OFFSET
1,2
COMMENTS
The complement sequence of sums of two or more consecutive nonprime numbers.
EXAMPLE
9 is a term because trying the sums of candidate consecutive nonprimes 1 + 4 = 5 != 9, 1 + 4 + 6 = 11 != 9, 4 + 6 = 10 != 9. All these sums miss the integer 9.
On the other hand, 23 is not a term because 23 = 6 + 8 + 9, which is the sum of three consecutive nonprime numbers.
CROSSREFS
Primes in the sequence: A257393.
Sequence in context: A032852 A031990 A023747 * A031998 A023759 A004742
KEYWORD
nonn
AUTHOR
Tamas Sandor Nagy, Dec 16 2023
STATUS
approved